npm install error/issue

前端 未结 3 1718
心在旅途
心在旅途 2020-12-12 02:04

I have already set proxy configurations in .npmrc file. Executing the npm install command gives me error as follows\"

$ npm install npm ERR! Windows_

3条回答
  •  旧巷少年郎
    2020-12-12 02:47

    Does your proxy URL have '@' symbol in it? @ symbol separates the user ID and password from the URL. If it does, you can try using '%40' to replace it.

    Also, it is https-proxy not http_proxy.

    A correct config would look like -

    registry=https://registry.npmjs.org/
    proxy=http://username:password@proxydomain:8080/
    https-proxy=https://username:password@proxydomain:8080/
    

    https://docs.npmjs.com/misc/config#proxy

提交回复
热议问题