卸载所有package.json依赖包

npm uninstall `ls -1 node_modules | tr '/\n' ' '`

以上命令需要shell环境执行。

在windows环境下,可创建uninstall.sh文件,文件内容为上述命令内容。执行uninstall.sh文件也可达到相同效果

一次性卸载npm本地包(node_modules)依赖

 

 

@萍2樱释ღ( ´・ᴗ・` )

相关文章:

  • 2022-12-23
  • 2021-12-11
  • 2021-12-15
  • 2021-11-19
  • 2022-02-24
  • 2022-12-23
  • 2021-11-23
  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-07-29
  • 2022-12-23
  • 2021-11-19
  • 2021-11-11
相关资源
相似解决方案