-
Notifications
You must be signed in to change notification settings - Fork 60.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add tip about nodenv permissions #365
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Zeke!
|
||
```sh | ||
# You should change the ownership of these directories to your user. | ||
sudo chown -R $(whoami) /usr/local/sbin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing that gave me pause was whether to replace $(whoami)
with my username or just the whoami
part. It might be worth calling out for people less familiar with the CLI.
sudo chown -R $(whoami) /usr/local/sbin | |
sudo chown -R USERNAME /usr/local/sbin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoami
is actually a command on Unix systems. When you run it, it returns your username. The command suggested by the nodenv
output will evaluate that on the fly, so sudo chown -R $(whoami) /usr/local/sbin
becomes sudo chown -R leona /usr/local/sbin
or similar.
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you haven't already, you can add yourself to the list of contributors by creating a new comment in this PR using these instructions. Thanks again! ✨ |
This tiny PR adds a tip about overcoming
nodenv
permissions warnings.