即使在安装了nodejs,cordova和ionic之后,我也无法启动离子新项目

时间:2018-01-07 12:41:19

标签: node.js angular cordova ionic-framework

我在笔记本电脑上成功安装了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:

these errors are showing up.

1 个答案:

答案 0 :(得分:-1)

试试这个ma是npm可能安装不正确尝试卸载它并再次安装npm。

rm -rf node_modules/
npm install