remove sudo
Co-authored-by: Mateusz Konieczny <matkoniecz@gmail.com>
This commit is contained in:
parent
e0da93fe47
commit
b568af6fdb
@ -210,14 +210,12 @@ psql -d <colouringlondondb> -c "create extension pg_trgm;"
|
|||||||
|
|
||||||
### :arrow_forward: Configuring Node.js
|
### :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
|
```bash
|
||||||
sudo su root
|
|
||||||
export NODEJS_HOME=/usr/local/lib/node/node-v16.13.2/bin/
|
export NODEJS_HOME=/usr/local/lib/node/node-v16.13.2/bin/
|
||||||
export PATH=$NODEJS_HOME:$PATH
|
export PATH=$NODEJS_HOME:$PATH
|
||||||
npm install -g npm@latest
|
sudo env "PATH=$PATH" npm install -g npm@latest
|
||||||
exit
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Now install the required Node packages. This needs to done from the `app` directory of your
|
Now install the required Node packages. This needs to done from the `app` directory of your
|
||||||
|
Loading…
Reference in New Issue
Block a user