remove sudo

Co-authored-by: Mateusz Konieczny <matkoniecz@gmail.com>
This commit is contained in:
Ed Chalstrey 2022-03-01 10:14:18 +00:00 committed by GitHub
parent e0da93fe47
commit b568af6fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,14 +210,12 @@ psql -d <colouringlondondb> -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