版本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