linux – 当我们使用npm开始使用webpack时权限被拒绝了吗?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了linux – 当我们使用npm开始使用webpack时权限被拒绝了吗?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1246字,纯文字阅读大概需要2分钟。
内容图文
使用命令“npm start”时将显示以下错误.
> callcenter@0.1.0 start /var/www/html/dev/callcenter
> react-scripts start
sh: 1: react-scripts: Permission denied
npm ERR! Linux 4.4.0-1013-aws
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! callcenter@0.1.0 start: `react-scripts start`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the callcenter@0.1.0 start script 'react-scripts start'.
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 callcenter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! react-scripts start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs callcenter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls callcenter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/dev/callcenter/npm-debug.log
解决方法:
确保您的react-script二进制文件是可执行的.
$chmod +x node_modules/.bin/react-scripts
内容总结
以上是互联网集市为您收集整理的linux – 当我们使用npm开始使用webpack时权限被拒绝了吗?全部内容,希望文章能够帮你解决linux – 当我们使用npm开始使用webpack时权限被拒绝了吗?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。