npm install Error: rollbackFailedOptional

Bipul Prasai picture Bipul Prasai · Sep 2, 2017 · Viewed 160.9k times · Source

When I try npm install new packages it shows me this error:

rollbackFailedOptional: verb npm-session 585aaecfe5f9a82

node --version
8.4.0

npm --version
5.3.0

Answer

anvarik picture anvarik · Jan 13, 2019
    # first this
    > npm config rm proxy
    > npm config rm https-proxy

    # then this
    > npm config set registry https://registry.npmjs.org/

solved my problem.

Again: Be sure to check whether you have internet connected properly.