●错误如下

PS C:\Users\liujieya\Desktop\Demo1\项目\vue-manage> npm run serve
npm WARN invalid config registry="[https://registry.npm.taobao.org]" set in C:\Users\liujieya.npmrc
npm WARN invalid config Must be full url with “http://”
npm WARN invalid config registry="[https://registry.npm.taobao.org]"
npm WARN invalid config Must be a full url with ‘http://’

在这里插入图片描述

●解决方法如下:

npm config set strict-ssl false
npm config set registry http://registry.npm.taobao.org
npm run serve

PS C:\Users\liujieya\Desktop\Demo1\项目\vue-manage> npm config set strict-ssl false
PS C:\Users\liujieya\Desktop\Demo1\项目\vue-manage> npm config set registry http://registry.npm.taobao.org
PS C:\Users\liujieya\Desktop\Demo1\项目\vue-manage> npm run serve

Logo

前往低代码交流专区

更多推荐