npm install pnpm -g 报错的解决方法
bash
npm error code ETIMEDOUT
npm error errno ETIMEDOUT
npm error network request to https://registry.npmjs.org/pnpm failed, reason:
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network setti
ngs.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\zhangchang\AppDat
a\Local\npm-cache\_logs\2024-08-14T09_39_08_962Z-debug-0.log
解决方法:
命令行中执行这两个命令,然后再执行npm install pnpm -g
bash
npm config get proxy
npm config rm https-proxy