当我尝试将新包发布到 npm 或尝试注销时,收到以下错误消息:
npm ERR! code E426
npm ERR! 426 Upgrade Required
Run Code Online (Sandbox Code Playgroud)
Rob*_*uch 48
\n\n\n从 2021 年 10 月 4 日开始,与 npm 网站和 npm\nregistry\xe2\x80\x94 的所有连接(包括软件包安装\xe2\x80\x94)必须使用 TLS 1.2 或\n更高版本。
\n
我做了什么:
\nnpm install -g npm@latest解决方案:我必须手动将注册表设置为使用 https 而不是 http:
\nnpm config set registry https://registry.npmjs.org/(0) 当使用nvm时,你需要这样做:
\nnvm install 14.18.0\nnvm use 14.18.0\nnvm alias default 14.18.0\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
15807 次 |
| 最近记录: |