npm run start报错

版本Vue项目执行 npm run start 的时候报错:

npmERR!Darwin 16.1.0

npmERR!argv"/Users/.nvm/versions/node/v7.4.0/bin/node" "/Users/.nvm/versions/node/v7.4.0/bin/npm" "run" "start" "xxxx_mainentry_index"

npmERR!nodev7.4.0

npmERR!npmv4.0.5

npmERR!codeELIFECYCLE

npmERR!activity-xx-source@1.1.6 start: `babel-node tools/run start "xxxx_mainentry_index"`

npmERR!Exit status 126

npmERR!

npmERR!Failed at the activity-xx-source@1.1.6 start script 'babel-node tools/run start "xxxx_mainentry_index"'.

npmERR!Make sure you have the latest version of node.js and npm installed.

npmERR!If you do, this is most likely a problem with the activity-xx-source package,

npmERR!not with npm itself.

npmERR!Tell the author that this fails on your system:

npmERR!babel-node tools/run start "xxxx_mainentry_index"

npmERR!You can get information on how to open an issue for this project with:

npmERR!npm bugs activity-xx-source

npmERR!Or if that isn't available, you can get their info via:

npmERR!npm owner ls activity-xx-source

npmERR!There is likely additional logging output above.

npmERR!Please include the following file with any support request:

npmERR!/Users/SVN/Web_fe/activity-xx-source/npm-debug.log

这个错误的原因是因为node的版本过低导致,更新到最新的node就能解决。


更新Node的命令行(2行分别执行):

npm install -g n
sudo n latest
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容