Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
# Install nvm on Linux/macOS: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash # Install and use a specific Node version: nvm install 20 nvm use 20 nvm alias default 20 # Verify installation: node --version # e.g. v20.11.0 npm --version # e.g. 10.2.4 # On Windows — use nvm-windows: # https://github.com/coreybutler/nvm-windows # nvm install 20.11.0 # nvm use 20.11.0 # Open the Node REPL (interactive shell): node # > 2 + 2 # 4 # > .exit
Result
Open