rubra-v0.1-function-calling / install_node.sh
sanjay920's picture
update
29f7f08
raw
history blame contribute delete
No virus
547 Bytes
#!/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