npm init vite-app 超时出错request to https://registry.npmjs.org/create-vite-app failed, reason: connect

 创建vite的项目超时 request to https://registry.npmjs.org/create-vite-app failed, reason: connect ETIMEDOUT 104.16.31.34:443

 说是proxy代理有问题,可能是使用了pnpm创建vue cli项目

清除npm代理

npm config set proxy false
npm cache clean

然后再重新创建项目

npm init vite-app 

npm init vite-app 超时出错request to https://registry.npmjs.org/create-vite-app failed, reason: connect_第1张图片

成功 

你可能感兴趣的:(npm,前端,node.js)