Search code examples
node.jssslnpm

npm install without ssl


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.

npm install will download dependencies via https. Is there anyway make it download via http?


Solution

  • 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/