All-round solution for permission error (permmision error)

Identify the location where you first installed the tool.

Example .npm

npm config get prefix

Change the owner of the place to you.

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

All-round solution for permission error (permmision error)
Solution for scikit-learn (sklearn) fetch_mldata error
Solution for pip install error [Python] [Mac]
Solution for run-time error in OpenVINO IEPlugin.load ()
Solution for "Import Error: No module named requests"
[Python] for statement error