Remode node modules
rm -rf node_modules
Check node current version
$ node -v
Outputs something like
v14.00
Unlink from current version
$ brew unlink node
Search for another version
$ brew search node
Install older version
$ brew install node@10
Link it
$ brew link node@10
Reload zsh or bash profile
$ source ~/.zshrc