我是新手。因此,为了学习角度,我尝试安装它。但这给了我以下错误
我也尝试更新我的节点。但这也失败了。
我使用了以下命令…… npm install npm -g(用于npm更新) npm install -g @ angular / cli(用于Angular更新)
我当前的节点版本是8,操作系统是Win10。
错误是
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/@angular%2fcli failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
registry.npmjs.org:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
答案 0 :(得分:0)
检查您的配置设置:npm config list
然后,您可以添加或更改代理设置:
npm config set http-proxy http://your_proxy_ip:port
npm config set https-proxy http://your_proxy_ip:port
答案 1 :(得分:0)
请访问此站点,besthostadvisor.com/blog/how-to-update-node-js/包含所有更新节点的方法
答案 2 :(得分:-1)
我在npm 6.0.9上遇到了问题,我做到了: 我在Powershell中使用npm install -g @ angular / cli 这可以正常运行。