将Mac升级到10.12后无法运行任何Ionic应用程序

时间:2016-10-09 21:48:09

标签: node.js angular ionic-framework ionic2 macos-sierra

每当我使用“ionic serve”启动Ionic应用程序时,我都会收到此错误

npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/Cellar/node/6.7.0/bin/node" "/usr/local/bin/npm" "run" "watch"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.7
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! ionic-hello-world@ watch: `ionic-app-scripts watch`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ionic-hello-world@ watch script 'ionic-app scripts watch'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts watch
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.

我删除了node_modules并完成了'npm install'。 我已经更新了Node npm和Ionic并卸载并重新安装它们。

我似乎无法在任何地方找到答案,我相信这可能是因为Sierra的升级,但似乎没有其他人遇到同样的问题

0 个答案:

没有答案