[英]NPM scripts permission denied on chronos (chromebook shell)
I recently installed node on my chromebook.我最近在我的 chromebook 上安装了 node。 I have git cloned a basic node repo that is trying to run things like webpack, babel-node, and concurrently through npm scripts.我已经 git 克隆了一个基本的节点存储库,它试图通过 npm 脚本同时运行 webpack、babel-node 和并发之类的东西。
However, running webpack (in the same directory) works just fine.但是,运行 webpack(在同一目录中)工作得很好。
I have run " sudo chmod -R 777 my_app
" and it did not help.我已经运行了“ sudo chmod -R 777 my_app
”,但它没有帮助。
Here is the error message:这是错误消息:
chronos@localhost ~/Downloads/MODULE $ npm start
> my-glitch-app@0.0.1 start /home/chronos/user/Downloads/MODULE
> concurrently "webpack -w -p" "babel-node server.js"
sh: concurrently: Permission denied
npm ERR! Linux 3.18.0-14875-g438cb8ab27c6
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! my-glitch-app@0.0.1 start: `concurrently "webpack -w -p" "babel-node server.js"`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the my-glitch-app@0.0.1 start script 'concurrently "webpack -w -p" "babel-node server.js"'.
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 my-glitch-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! concurrently "webpack -w -p" "babel-node server.js"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs my-glitch-app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls my-glitch-app
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/chronos/user/Downloads/MODULE/npm-debug.log
按照我上面的评论, sudo mount -o remount,exec /home/chronos/user
似乎有效,但我的情况有进一步的异常,所以我很好奇同行经验
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.