柚子快報(bào)激活碼778899分享:npm 快速刪除node
柚子快報(bào)激活碼778899分享:npm 快速刪除node
直接在文件資源管理器里面刪除node_modules和.pnpm-store文件夾很慢(因?yàn)樾∥募啵瑒h除不夠并行),有幾種方法快速刪除。
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
精簡(jiǎn)
pnpm store prune
2
定位
pnpm store path
刪除
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
柚子快報(bào)激活碼778899分享:npm 快速刪除node
相關(guān)鏈接
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點(diǎn)和立場(chǎng)。
轉(zhuǎn)載請(qǐng)注明,如有侵權(quán),聯(lián)系刪除。