执行 npm install -g @vue/cli 报错
目录
一、问题描述
准备使用vue3.0初始化一个项目,在使用 npm install -g @vue/cli 安装过程出现了异常信息:
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated [email protected]: this
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
二、解决方案
1、升级npm
npm i -g npm
2、清理缓存
npm cache clean --force
3、再次安装
npm install -g @vue/cli
上一篇: gulp的安装和使用
下一篇: node+mongodb环境搭建
推荐阅读
-
vue踩坑记-在项目中安装依赖模块npm install报错
-
npm install @vue-cli 安装报错
-
Vue安装依赖 npm install 失败报错
-
npm install -g cnpm安装报错
-
vue执行npm install报错: Can‘t find Python executable “python“, you can set the PYTHON env variable
-
npm install -g @vue/cli 报错
-
问题:npm install -g @vue/cli 报错
-
sudo npm install fecs -g 报错
-
vue: command not found npm install -g @vue/cli
-
执行 npm install -g @vue/cli 报错