![cover](https://img-blog.csdnimg.cn/img_convert/a7b426f027554ddcbce196b962043da2.png)
ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/@webpack-cli%2Fserve: request to https://re
在使用 pnpm install 和 pnpm add 时,控制台报错如下。尝试1:更新pnpm版本到最细。尝试2:更新npmn源。
![](https://csdnimg.cn/release/devpress/public/img/ic-book.4f347164.png)
一键AI生成摘要,助你高效阅读
问答
·
ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/@webpack-cli%2Fserve: request to https://registry.npmjs.org/@webpack-cli%2Fserve failed, reason: Socket timeout
problem
在使用 pnpm install 和 pnpm add 时,控制台报错如下
ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/@webpack-cli%2Fserve: request to https://registry.npmjs.org/@webpack-cli%2Fserve failed, reason: Socket timeout
reason
不清楚
solution
尝试1:更新pnpm版本到最细
# 先把node升级到最新 去官网去下载安装包
node -v # v16.19.1
npm -v # 8.19.3
# 升级pnpm
npm install -g pnpm@latest
pnpm -v # 8.4.0
尝试2:更新npmn源
npm config set registry https://registry.npm.taobao.org
更多推荐
所有评论(0)