最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

永远不必删除node

IT培训 admin 5浏览 0评论

永远不必删除node

我已经运行到这个问题,

$ npm run production

@ production /var/www/html/****
 cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

xnpm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ production: cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-06T13_49_22_325Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ prod: npm run production
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-06T13_49_22_696Z-debug.log

每次发生这种情况的时候,我必须时刻,去除node_modules和运行NPM安装到然后再次运行NPM生产运行后,它的作品。

回答如下:

只是要在服务器重新启动的更新包。现在一切工作正常。

apt update restart now

永远不必删除node

我已经运行到这个问题,

$ npm run production

@ production /var/www/html/****
 cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

xnpm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ production: cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-06T13_49_22_325Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ prod: npm run production
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-06T13_49_22_696Z-debug.log

每次发生这种情况的时候,我必须时刻,去除node_modules和运行NPM安装到然后再次运行NPM生产运行后,它的作品。

回答如下:

只是要在服务器重新启动的更新包。现在一切工作正常。

apt update restart now

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论