Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

npm ERR! uglifyjs-webpack-plugin@0.4.6 postinstall: node lib/post_install.js #113

Closed
wfgmiami opened this issue Aug 23, 2017 · 9 comments
Closed

Comments

@wfgmiami
Copy link

I am getting the following error when trying to install webpack on AWS EC2:

image

@alexander-akait
Copy link
Member

alexander-akait commented Aug 23, 2017

@wfgmiami Seems your have invalid permission, look on your first line in screenshot. Remove node_modules and try to install again.

@wfgmiami
Copy link
Author

@evilebottnawi I do not know why i get that permission denied message. I am able to install other packages like express for example. I removed node_modules, ran again but i got the same error.

@alexander-akait
Copy link
Member

@wfgmiami I see your work using root, it is not recommended (this can cause problems). But your can try to create minimum reproducible test repo, maybe it is allow to find your problem.

@wfgmiami
Copy link
Author

@evilebottnawi Thanks for your help. I did sudo apt-get install nodejs-legacy and after than I was able to npm install webpack.

@heythisisgp
Copy link

please help me .how to resolve this issue

@heythisisgp
Copy link

i cant get your answer @wfgmiami ,@evilebottnawi

@alexander-akait
Copy link
Member

Please don't use unmaintained uglify-webpack-plugin@0.4.6

@rami-sweyri
Copy link

i have same issue

@IvanTellezM
Copy link

Hey Everyone, I ran into the same issue and this is what it worked for me:

  1. delete package-lock.json
  2. npm cache clean --force
  3. wait 1 min.
  4. npm-install, this will create our new package-lock.json
    ( npm notice created a lockfile as package-lock.json )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants