直接在文件資源管理器里面刪除node_modules和.pnpm-store文件夾很慢(因?yàn)樾∥募?,刪除不夠并行),有幾種方法快速刪除。
node_modules
1. remove-node-modules
npm install -g remove-node-modules
remove-node-modules
2. rimraf
npm install -g rimraf
rimraf node_modules
3. CMD
rd /s /q node_modules
4. Powershell
rm -rf node_modules
.pnpm-store
1
精簡
pnpm store prune
2
定位
pnpm store path
刪除文章來源:http://www.zghlxwxcb.cn/news/detail-766173.html
rm -rf .pnpm-store
參考
https://blog.csdn.net/lijingjingjing22/article/details/116118701
https://blog.csdn.net/RingoH/article/details/117957190
https://github.com/orgs/pnpm/discussions/4413文章來源地址http://www.zghlxwxcb.cn/news/detail-766173.html
到了這里,關(guān)于快速刪除node_modules和.pnpm-store文件夾的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!