Resolve NPM Doesn’t Work on Old Version of NodeJS with Homebrew on Mac - VicPhanDevOps/mac GitHub Wiki
• The following resolution is for if NPM won’t work on an old version of Node.js when you know you have a newer version installed.
•
• Type node -v
and press the return key to get the Node.js version and you’ll see that it’s showing an old version.
•
• Type brew link --overwrite node
and press the return key to overwrite the existing Node.js symbolic links.
•
• Type node -v
and press the return key to get the Node.js version and you’ll see the newer version this time around.
•
• Type npm -v
and press the return key to get the NPM version and it will work this time around.
•