Spaces:
Running
on
Zero
Running
on
Zero
# 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 |