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

卸载所有package.json依赖包

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

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

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

 

 

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

posted @ 2021-05-19 10:33  不忘初心dbsdxq  阅读(1313)  评论(0编辑  收藏  举报
TOP 文章底部