vue create 创建项目报错 command failed: npm install loglevel error

  起因:在终端使用vue create xx 创建vue3项目,执行过程中报错:command failed: npm install --loglevel error,找度娘问了一通,无功而返,自己摸索。

  解决方案:编辑 .vuerc 文件,将"useTaobaoRegistry"设置为false。

  编辑 .npmrc 文件,设置源为registry=http://registry.npmjs.org/(我之前是淘宝镜像)设置好后,最终结果如下: 

  后运行vue create xx 成功。

  完结,撒花~ 

原文地址:https://www.cnblogs.com/SophiaLees/p/15429536.html