mirror of
https://github.com/tj/n.git
synced 2024-11-24 19:46:56 +01:00
parent
183eea4855
commit
73465b1ff0
@ -44,6 +44,8 @@ To avoid requiring `sudo` for `n` and `npm` global installs, it is suggested you
|
||||
# make cache folder (if missing) and take ownership
|
||||
sudo mkdir -p /usr/local/n
|
||||
sudo chown -R $(whoami) /usr/local/n
|
||||
# make sure the required folders exist (safe to execute even if they already exist)
|
||||
sudo mkdir -p /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share
|
||||
# take ownership of Node.js install destination folders
|
||||
sudo chown -R $(whoami) /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user