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