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