Answer the question
In order to leave comments, you need to log in
How to switch Node version?
Brew installed
And there are 2 projects:
1) it works fine on the latest version of npm
2) it works fine only on [email protected]
I reinstalled the system, I install node:
brew install node
Everything is installed, I run npm run dev and the first project works, everything is fine
I go to the second project, I do npm run dev fails.
Ok, everything is clear already on the project, it does not work with the latest versions
. Install [email protected]:
brew install [email protected]
brew unlink node
brew link [email protected] --force --overwrite
Error: Could not symlink bin/npm
Target /usr/local/bin/npm
already exists. You may want to remove it:
rm '/usr/local/bin/npm'
To force the link and overwrite all conflicting files:
brew link --overwrite [email protected]
To list all files that would be deleted:
brew link --overwrite --dry-run [email protected]
brew unlink [email protected]
brew link node --force
zsh: command not found: npm
Answer the question
In order to leave comments, you need to log in
I use ` https://github.com/nvm-sh/nvm` at home on win and at work on linux
when we change versions and update packages if there are compiled addons.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question