Example .npm
npm config get prefix
chown: change owner change owner -R: Change directory and everything under it whoami: get the logged-in username {DirA, DirB, ..., DirN}: When specifying multiple directories
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
[Direct translation of command] ** Change of ownership Change directory Location of logged-in user directory **
I referred to this article → https://qiita.com/okohs/items/ced3c3de30af1035242d
Recommended Posts