【问题标题】:i am unable to start new project on ionic even after installing nodejs ,cordova and ionic即使安装了nodejs、cordova 和 ionic,我也无法在 ionic 上启动新项目
【发布时间】:2018-01-08 18:19:14
【问题描述】:

我在笔记本电脑上成功安装了 npm、cordova 和 ionic。仍在使用ionic start iweather tabs 命令时,我收到了我无法理解的错误消息。请帮我创建一个新项目。

  • 节点版本:9.3.0
  • 离子 cli :5.5.1

错误是:

Build failed with error code: 1
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted                                                                                                                                         {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! node-sass@4.5.3 postinstall: `node scripts/build.js`
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the node-sass@4.5.3 postinstall script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output a                                                                                                                                        bove.

    npm ERR! A complete log of this run can be found in:

【问题讨论】:

标签: node.js angular cordova ionic-framework


【解决方案1】:

试试这个可能npm可能没有正确安装尝试卸载它并重新安装npm。

rm -rf node_modules/
npm install

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-08-24
    • 2017-03-20
    • 1970-01-01
    • 2018-06-14
    • 2018-11-20
    • 2016-02-22
    • 1970-01-01
    • 2019-03-05
    相关资源
    最近更新 更多