欢迎光临散文网 会员登陆 & 注册

npm ERR! code ETIMEDOUT 的一种解决方法

2022-08-07 19:55 作者:LogByMax  | 我要投稿

(认知有限,如有不妥,还望告知,欢迎讨论)

环境:win10,node v16.16.0, npm v8.11.0

报错截图:

(第一行报错已在npm WARN config global `--global`, `--local` are deprecated. Use - 哔哩哔哩 (bilibili.com)这里解决)

后续的ERR解决方法:

step1. npm config get registry

step2. npm config set registry https://registry.npm.taobao.org

step3. npm config get registry

step4.重新执行(如果在公司内网里,可能需要退出内网才能安装上)

npm init vue@latest

=END=

=reference=

[1] https://blog.csdn.net/Leo_zjk/article/details/125222823

npm ERR! code ETIMEDOUT 的一种解决方法的评论 (共 条)

分享到微博请遵守国家法律