Could not find a JavaScript runtime node js

preview_player
Показать описание


1. Install NVM:

If you haven't installed NVM yet, you can do so by running the following command in your terminal:

On macOS/Linux:

After installation, add the following lines to your shell configuration file (~/.bashrc, ~/.zshrc, etc.) if they aren't added automatically:

export NVM_DIR="$HOME/.nvm"

Then, reload your shell configuration:

source ~/.bashrc or ~/.zshrc

nvm install node

Or, to install a specific version (e.g., 16.x):

nvm install 16

To use the installed version, run:

nvm use node or nvm use 16 for a specific version

node -v
npm -v

Рекомендации по теме
welcome to shbcf.ru