不运行命令npm run build:prod生产linux服务器中的Angular 2项目

时间:2017-01-20 14:05:44

标签: linux angular npm server production

执行命令npm run build:prod

我不知道错误是在端口还是在其中一个文件中。

npm ERR! Linux 2.6.32-642.6.2.el6.x86_64
npm ERR! argv "/root/.nvm/versions/node/v6.9.4/bin/node" "/root/.nvm/versions/node/v6.9.4/bin/npm" "run" "build:prod"
npm ERR! node v6.9.4
npm ERR! npm  v4.1.1
npm ERR! code ELIFECYCLE
npm ERR! venfi@3.3.0 build:prod: `webpack --config config/webpack.prod.js  --progress --profile --bail`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the venfi@3.3.0 build:prod script 'webpack --config  config/webpack.prod.js  --progress --profile --bail'.
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 venfi package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack --config config/webpack.prod.js  --progress --profile --bail
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs venfi
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls venfi
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /var/www/clients/client6/web5/web/venfi/npm-debug.log

我已经尝试了很多天,我该怎么办?

谢谢,

0 个答案:

没有答案