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

亲测有效~~~

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。