From b568af6fdb5c734a2c62bfc6306b4e060c83b2dd Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Tue, 1 Mar 2022 10:14:18 +0000 Subject: [PATCH] remove sudo Co-authored-by: Mateusz Konieczny --- docs/setup-dev-environment.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/setup-dev-environment.md b/docs/setup-dev-environment.md index 1a289b3f..761f7271 100644 --- a/docs/setup-dev-environment.md +++ b/docs/setup-dev-environment.md @@ -210,14 +210,12 @@ psql -d -c "create extension pg_trgm;" ### :arrow_forward: Configuring Node.js -Now upgrade the npm package manager to the most recent release with global privileges. This needs to be performed as root user, so it is necessary to export the node variables to the root user profile. Don't forget to exit from root at the end. +Now upgrade the npm package manager to the most recent release with global privileges. This needs to be performed as root user, so it is necessary to export the node variables to the root user profile. ```bash -sudo su root export NODEJS_HOME=/usr/local/lib/node/node-v16.13.2/bin/ export PATH=$NODEJS_HOME:$PATH -npm install -g npm@latest -exit +sudo env "PATH=$PATH" npm install -g npm@latest ``` Now install the required Node packages. This needs to done from the `app` directory of your