npm install pnpm -g :request to https://registry.npmjs.org/pnpm failed, reason: connect ETIMEDOUT

 npm install pnpm -g install and initialize vite vue3 project

npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/pnpm failed, reason: connect ETIMEDOUT 104.16.29.34:443
 

   Error reported when using npm cache clean --force command.

        You can use the npm cache verify command.

It's no use either

Modify image

//1. View npm mirror settings
npm config get registry
//2. Set npm as Taobao mirror< a i=3> npm config set registry https://registry.npm.taobao.org //3. Check the npm image settings again npm config get registry



 

 Execute again:

above sea level and -g below sea level

Guess you like

Origin blog.csdn.net/LlanyW/article/details/134988898