使用公共 wifi 进行 npm install

问题描述 投票:0回答:2

我买了装有 Windows 10 的新笔记本电脑,并安装了

nodejs
angular 10
,当我尝试
run ng new myproject
时,我面临的问题是需要花费很多时间来安装依赖项并挂起而无法继续。

我尝试了这些解决方案,但没有成功:

npm cache clean --force
ng new myproject --skip-install ==> npm install --verbose
npm config set registry http://registry.npmjs.org/
npm config delete proxy
npm config delete https-proxy

我正在使用

public wifi
,安全类型是
Open
这有影响吗?

node.js angular npm npm-install
2个回答
1
投票

终于解决了公共WiFi对网络有限制的问题,当我尝试将笔记本电脑连接到另一个网络(3G网络)时,它工作得很好。


0
投票

有一个类似的问题,在我的家庭 wifi 上,我无法安装 npm 软件包,终端只是 hags。奇怪的事情就像你说的那样,它可以通过我的手机使用移动热点。 我所做的是更新路由器固件(Tenda AC2100),现在到目前为止它工作得很好。

但是,您无法更新公共 wifi 路由器固件,但将此通信网络保留在此处可能会帮助其他遇到类似问题的人。

© www.soinside.com 2019 - 2024. All rights reserved.