0
0
mirror of https://github.com/tj/n.git synced 2024-11-24 19:46:56 +01:00
This commit is contained in:
Luca Ban 2021-07-25 06:32:12 +09:00 committed by GitHub
parent 183eea4855
commit 73465b1ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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