npm run prd —— cross-env: Permission denied - 简书

控制台报错

sh: /usr/burcblog-node/node_modules/.bin/cross-env: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! burcblog-node@0.0.0 prd: `cross-env NODE_ENV=production nodemon ./bin/www`
npm ERR! Exit status 126
npm ERR! 
npm ERR! Failed at the burcblog-node@0.0.0 prd 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-08-16T07_33_11_061Z-debug.log

解决方法

输入一下命令

npm rebuild

然后重新输入

npm run prd

亲测有效~~~


Original url: Access
Created at: 2020-06-24 13:50:38
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论