npm install error – eperm operation not permitted unlink

Possibly save 1 hour of your time: I am not sure exactly what causes this issue.

My environment:

  • Windows 10
  • node v8.9.1
  • npm v5.6.0

 

Possible Solution:

1. Some has try the following:

  npm install –no-optional

2. Others have downgraded to npm 5.3.

  npm install npm@5.3 -g

3. Remove npm and npm cache

C:\Users\your.name\AppData\Roaming\npm

C:\Users\your.name\AppData\Roaming\npm-cache

But none of the above works for me.

4. The hard way is to rollback and start with a working state.

5. Finally, if none of above works, start a new app and slowly migrate over to see what changes cause the issue. This is a tedious and long process.

 

Advertisements

One thought on “npm install error – eperm operation not permitted unlink

  1. To add up to that, hereunder are the things I’ve tried:

    * Execute `npm install –save` with `–no-bin-links`
    * Or use npm 5.3 `npm install -g npm@5.3`
    * Or use npm 5.0.3 `npm install -g npm@5.0.3`
    * Or use npm 5.7.1 `npm install -g npm@5.7.1`
    * Or use `yarn` LOL

    The last one where I used YARN worked for me.

    Yarn IS compatible in project created with NPM anyways, check out:

    https://yarnpkg.com/lang/en/docs/migrating-from-npm/

    Cheers

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s