question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webpack-dev-server: Permission denied

See original GitHub issue

Hi. Your repo is very usefull but I cant install it 😦 My steps was : 1.- clone 2.- npm install 3.- npm start and the error after this command is:

root@abcde:/some_folder/react-webpack-babel# npm start
react-webpack-babel@0.0.3 start /some_folder/react-webpack-babel
webpack-dev-server --progress --profile --colors

sh: 1: webpack-dev-server: Permission denied

npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "node" "/user/apps/node-v4.2.3-linux-x64/bin/npm" "start"
npm ERR! node v0.10.37
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! react-webpack-babel@0.0.3 start: `webpack-dev-server --progress --profile --colors`
npm ERR! Exit status 126
npm ERR! 
npm ERR! Failed at the react-webpack-babel@0.0.3 start script 'webpack-dev-server --progress --profile --colors'.
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 react-webpack-babel package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack-dev-server --progress --profile --colors
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-webpack-babel
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-webpack-babel
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /some_folder/react-webpack-babel/npm-debug.log

I have several months developing whit node and npm so my node and npm are correct!

node version:v4.2.3 npm version : 3.10.9 linux info : 14.04.1-Ubuntu

Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
dloretcommented, Jan 16, 2017

Hi, I got this issue also in this precise configuration:

  • I created the project repo in my dropbox, on Windows 10 (professional) laptop
  • I installed the npm dependencies and created package.json + webpack.config.js on Windows 10
  • I loaded the project on Visual Studio Code on Linux and ran “npm start” from Fedora 25 (personal laptop)

It could be related to the fact the config (global versus local) installation of some packages is not the same in the 2 environments (windows vs linux). After simply deleting the node_modules folder, without changing the config files, everything was back to normal again.

10reactions
Twopotheadcommented, Apr 7, 2020

why-is-permission-denied-for-npm-start-using-node-dev

sudo chmod 755 -R node_modules/

It solved my problem without having to remove node_modules folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while starting npm? - Stack Overflow
I can see a permission denied in your logs. Do you have the permission to execute the webpack-dev-server command? A chmod 755 could...
Read more >
Permission denied when we use npm start using webpack?
The following error will be displayed when i use the command "npm start". > callcenter@0.1.0 start /var/www/html/dev/callcenter > react-scripts ...
Read more >
"npm start" permission denied error: how to solve it?
So, to solve this issue all you have to do is: · Remove Node If in OSX run brew uninstall node · Delete...
Read more >
sh: 1: webpack-dev-server: Permission denied_裁决之地的博客
npm run dev一个项目时出现了如标题的错误,提示权限错误。我没有安装webpack-dev-server这个模块,也不知道之前有没有安装webpack,索性一块安装。
Read more >
AWX docker images build error for Kubernetes - Google Groups
npm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: ... 1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):\nnpm WARN notsup ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found