From 923c7e4232b63718dd10ab77c5e66055b4b9517d Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Wed, 14 Oct 2020 10:53:05 -0700 Subject: [PATCH] add tip about nodenv permissions (#365) Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> --- contributing/node-versions.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contributing/node-versions.md b/contributing/node-versions.md index da30ad65768f..9ab9c9a66a1c 100644 --- a/contributing/node-versions.md +++ b/contributing/node-versions.md @@ -19,10 +19,17 @@ When updating to a new Node.js version, consider the following files: If you're using macOS, run this command to get the latest: -``` +```sh brew upgrade nodenv node-build ``` +If you see a warning like this one, run the suggested command: + +```sh +# You should change the ownership of these directories to your user. +sudo chown -R $(whoami) /usr/local/sbin +``` + If you're using another operating system, or did not use Homebrew to install nodenv, see these [upgrade instructions](https://github.com/nodenv/nodenv#installation). To install Node.js 14 and make it your default version, run this command: