From a97ad13cae960dbb0be1b7f665b521023691ab31 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Fri, 9 Oct 2020 13:27:02 -0700 Subject: [PATCH] add tip about nodenv permissions --- 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: