设置npm镜像:

npm config set registry  https://registry.npm.taobao.org

 

我遇到的报错情况:

 Error: Cannot find module 'chalk'

 Error: Cannot find module 'semver'

 Error: Cannot find module 'shelljs'

 Error: Cannot find module 'child_process'

不同的项目依赖于不同的模块,这些模块都需要自己安装。

运行npm run dev 错误:

NodeJS 安装不存在的模块

报模块不存在错误,这个需要自己安装。

npm安装模块语法:

npm install {module} --save  

 NodeJS 安装不存在的模块

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-05-30
  • 2021-07-06
  • 2021-05-15
猜你喜欢
  • 2021-06-03
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2021-10-12
  • 2022-12-23
相关资源
相似解决方案