我在笔记本电脑上成功安装了npm,cordova和ionic。仍在使用ionic start iweather tabs
命令,我收到错误消息,我无法理解。请帮我创建一个新项目。
错误是:
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:
答案 0 :(得分:-1)
试试这个ma是npm可能安装不正确尝试卸载它并再次安装npm。
rm -rf node_modules/
npm install