【发布时间】: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,ionic cli?
-
节点版本:9.3.0 ionic cli:5.5.1
-
尝试 LTS 版本的节点...这就是 ionicframework.com/docs/intro/installation 所说的
-
谢谢! LTS 版本有效。!!
-
您好,欢迎来到 stackoverflow。您能否edit您的问题将您的错误作为文本而不是屏幕截图包含在内?此处的政策是不为此目的使用图像,请参阅 Discourage screenshots of code and/or errors 和 Why not upload images of code on SO when asking a question 了解原因。
标签: node.js angular cordova ionic-framework