tips
How to change cache location(path) of npm
iosroid
2022. 6. 10. 14:19
Check current(default) location
npm config ls -l
# linux
cache = "/home/sean/.npm"
# Windows
cache = "C:\\Users\\Sean\\AppData\\Local\\npm-cache"
Set config
# linux
npm config set cache /home/sean/mypath/node/cache --global
# windows
npm config set cache C:\mypath\node\cache --global