npm install Error: rollbackFailedOptional npm install Error: rollbackFailedOptional node.js node.js

npm install Error: rollbackFailedOptional


    # 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.


Try this

npm config rm proxynpm config rm https-proxy


In my case I had to edit the .npmrc directly and add the proxy settings manually.

proxy=http://yourorganizationproxy.com:8080https-proxy=http://yourorganizationproxy.com:8080

Hope this helps someone.