Manually installing NPM packages

后端 未结 5 622
一个人的身影
一个人的身影 2021-01-02 02:47

I used the node windows installer v0.8.3 to install nodejs. When I try to install express like this:

npm install express

It\'s not working

5条回答
  •  情话喂你
    2021-01-02 03:23

    It would probably be most convenient long-term to configure NPM to use the aforementioned proxy through one of the following methods (In the following, replace $PROXY with your proxy in the form $PROTOCOL://$DOMAIN:$PORT (e.g. http://proxy.server:80))

    A. Set the environment variables http_proxy and https_proxy to $PROXY

    B.

    npm set proxy $PROXY
    npm set https-proxy $PROXY
    

提交回复
热议问题