开发npm运行脚本不显示节点错误

时间:2016-12-06 13:24:12

标签: node.js npm

使用npm run脚本启动dev:"dev": "NODE_PATH=\"$(pwd)\" nodemon -r babel-register -r babel-polyfill src/index.js",

当节点发生错误(我的代码错误)时,显示以下ID:

npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/karlm/.nvm/versions/node/v7.2.0/bin/node" "/home/karlm/.nvm/versions/node/v7.2.0/bin/npm" "run" "start" "--" "--config" "configs/config.json"
npm ERR! node v7.2.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! proj@1.1.1 start: `NODE_PATH="$(pwd)" node -r babel-register -r babel-polyfill src/index.js "--config" "configs/config.json"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the proj@1.1.1 start script 'NODE_PATH="$(pwd)" node -r babel-register -r babel-polyfill src/index.js "--config" "configs/config.json"'.
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 avhs-frontdoor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     NODE_PATH="$(pwd)" node -r babel-register -r babel-polyfill src/index.js "--config" "configs/config.json"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs proj
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls proj
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/karl/dev/node/proj/npm-debug.log

npm-debug.log什么都没有。这非常令人恼火。无论如何,npm是否将实际节点错误输出到控制台?

0 个答案:

没有答案