-
- NVM is a version manager for Node.js
-
- Windows 10 (
x64
) - WSL 2 (
Ubuntu 20.04.2 LTS
)
- Windows 10 (
-
- CURL (
sudo apt-get install curl
)
- CURL (
##### Cloning to a specific version
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
##### Or Cloning the latest available version
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm ls
nvm install --lts
node -v
npm -v
nvm install v14.17.4
nvm list
nvm use v14.17.4
nvm alias default v14.17.4
(run commands inside the project folder)
# Installing project dependencies
npm install
# To build the project
npm run build
# To upload the local application
npm start