npm遇到的问题--npm install 执行报错 /bin/git submodule update -q --init --recursive

1.执行npm i 安装依赖时,报错:cannot read property 'match' of undefined

据说是npm本地缓存导致

解决方案: rm -rf package-lock.json ( 甚至连同node_modules一起删掉   rm -rf package-lock.json node_modules)

 

但是执行完毕后,又出现了新问题:/bin/git submodule update -q --init --recursive

npm遇到的问题--npm install 执行报错 /bin/git submodule update -q --init --recursive

2.强制清除npm 缓存

 npm cache clean --force

 再执行npm i 如果还不行的话,需要退出重新登陆

 

3. su -l 退出重新登陆

在执行npm i安装即可

 

 

 

 

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2022-12-23
  • 2021-12-21
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
相关资源
相似解决方案