[英]npm install invalid protocol error
I am new to nodejs. 我是nodejs的新手。
As I am trying to install ejs
via npm
on my local windows system. 因为我想在我的本地Windows系统上通过
npm
安装ejs
。 But it gives me error invalid protocol: 192.168.1.201
. 但它给我错误无效的协议:
192.168.1.201
。 I have attached the screen shot. 我附上了屏幕截图。
Earlier I was using the same PC on a corporate proxy. 早些时候我在公司代理上使用相同的PC。 But recently we have removed all proxies from the system.
但是最近我们从系统中删除了所有代理。 After removing all proxy settings everything is working fine.
删除所有代理设置后,一切正常。 But still on few places I am getting this error message.
但仍然在少数几个地方我收到此错误消息。
I have tried almost all possible commands to remove proxy from everywhere. 我已经尝试了几乎所有可能的命令来从任何地方删除代理。 But still I am not able to install
ejs
. 但我仍然无法安装
ejs
。 I am also facing the same problem while installing express framework
in nodejs
. 我在
nodejs
安装express framework
时也nodejs
了同样的问题。
Now the issue has been resolved. 现在这个问题已经解决了。 It was related to proxy settings.
它与代理设置有关。 Earlier I tried to remove all the proxy from system but wasn't getting any success.
早些时候我试图从系统中删除所有代理,但没有取得任何成功。
After removing proxy from the windows registry it started working properly. 从Windows注册表中删除代理后,它开始正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.