Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm rollbackFailedOptional error when install packages #20608

Open
1 task done
mohammad19fff opened this issue May 14, 2018 · 6 comments
Open
1 task done

npm rollbackFailedOptional error when install packages #20608

mohammad19fff opened this issue May 14, 2018 · 6 comments

Comments

@mohammad19fff
Copy link

mohammad19fff commented May 14, 2018

I'm opening this issue because:

  • npm is producing incorrect or undesirable behavior.

I have a problem when installing any npm packages. here is my error:

rollbackFailedOptional: verb npm-session xxxxxxxxxxx

for resolving this I do some stuff but I still get the same error.

I put registry=http://registry.npmjs.org/ in .npmrc file in my user folder and also run following commands:

npm config rm proxy
npm config rm https-proxy

I try to solve the problem in node 8.11.1 and node 10.1.0 and my npm version is 5.6.0.

Why this problem occurs and how can resolve that?

@legodude17
Copy link
Contributor

Try updating to the latest version of npm.

@mohammad19fff
Copy link
Author

mohammad19fff commented May 15, 2018

@legodude17 But how can I Install the latest version of npm without using npm?

@mohammad19fff
Copy link
Author

@legodude17 When I want to install latest npm version I've got this error:

rollbackFailedOptional: verb npm-session xxxxxxxxxxx

@legodude17
Copy link
Contributor

What OS are you running?

@mohammad19fff
Copy link
Author

windows 10

@legodude17
Copy link
Contributor

You could try getting the node MSI and using it again.

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

No branches or pull requests

2 participants