简体   繁体   中英

errors installing npm packages

I am new to node.js and trying to install some packages like express and jade but its getting me frustrated, every time I am encountering different kind of errors some of which are

         ENOENT
         EADDRINFO
         Could not load package.json

I have also googled it but nothing helped me, I am on a wi-fi network provided by our college(cyberoam) and tor-deamon is installed on my linux machine. Any good tutorials to install npm packages properly will be appreciated. Thank you in advance.

Try executing following commands on your command prompt, by replacing proxy address:

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM