I have an Ubuntu VM that is having trouble connecting to sites with ssl, i.e. https. It can successfully download artifacts from the internet if the url begins with http.>
Try changing the registry to the http version rather that the default https one using the command
npm config set registry http://registry.npmjs.org/