Spaces:
Running
on
Zero
Running
on
Zero
File size: 547 Bytes
29f7f08 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/bin/bash
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.nvm/nvm.sh
# download and install Node.js (you may need to restart the terminal)
nvm install 20
# verifies the right Node.js version is in the environment
~/.nvm/versions/node/v20.15.0/bin/node -v # should print `v20.15.0`
# verifies the right NPM version is in the environment
~/.nvm/versions/node/v20.15.0/bin/npm -v # should print `10.7.0`
~/.nvm/versions/node/v20.15.0/bin/npm install jsonrepair -g |