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! [email protected] prd: `cross-env NODE_ENV=production nodemon ./bin/www`
npm ERR! Exit status 126
npm ERR! 
npm ERR! Failed at the [email protected] 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

亲测有效~~~

你可能感兴趣的:(npm run prd —— cross-env: Permission denied)