npm install without ssl

前端 未结 4 1493
遇见更好的自我
遇见更好的自我 2020-12-04 15:43

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.

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 15:47

    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/
    

提交回复
热议问题