简体   繁体   English

安装npm软件包时出错

[英]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 我是node.js的新手,尝试安装Express和Jade之类的软件包,但每次遇到不同类型的错误时,我都会感到沮丧。

         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. 我也用谷歌搜索,但没有任何帮助,我在由我们的大学(cyberoam)提供的wi-fi网络上,tor-deamon安装在我的linux机器上。 Any good tutorials to install npm packages properly will be appreciated. 任何正确安装npm软件包的好的教程都将受到赞赏。 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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