记录工作或者学习中包管理安装丶更新依赖遇到的问题:

一:vue项目 yan run build打包时候提示

To use this template, you must update following to modules:

npm: 6.5.0-next.0 should be >= 3.0.0

更新npm的时候提示Cannot find module 'is-builtin-module'

解决:先降级node稳定版本v6,然后重新安装nmp

n 6

npm i npm -g 

 

二:无法通过脚手架create umi创建项目

查看官方解决:https://cnpmjs.org/package/create-umi

 

三:卡在下载google测试工具puppeteer

换源:npm config set puppeteer_download_host=https://storage.googleapis.com.cnpmjs.org

 

三:卡在下载node-sass 

换源:npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ (局部)

   npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ (全局)

 

其他:根据报错和提示信息解决

提示node版本要求 使用n 管理工具安装切换

npm因为缓存安装失败:npm cache clean —force 

 

相关文章:

  • 2022-12-23
  • 2018-04-28
  • 2021-09-04
  • 2022-12-23
  • 2021-07-25
  • 2021-10-29
  • 2021-04-10
  • 2021-07-23
猜你喜欢
  • 2021-05-11
  • 2021-10-16
  • 2022-12-23
  • 2021-11-21
  • 2021-11-08
  • 2022-12-23
  • 2021-05-30
相关资源
相似解决方案