ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/@webpack-cli%2Fserve: request to https://re
生活随笔
收集整理的這篇文章主要介紹了
ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/@webpack-cli%2Fserve: request to https://re
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
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升級到最新 去官網(wǎng)去下載安裝包 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
總結
以上是生活随笔為你收集整理的ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/@webpack-cli%2Fserve: request to https://re的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: js:金额显示转换 分转元 去除尾部的0
- 下一篇: AI 趋势