Closed sunmingtao closed 3 years ago
npm -v
show version 7.12, which is the culprit
Solution:
Uninstall node and npm
brew uninstall node;
which node;
sudo rm -rf /usr/local/bin/node;
sudo rm -rf /usr/local/lib/node_modules/npm/;
brew doctor;
brew cleanup --prune-prefix;
Reinstall node and npm version 6.
brew install node
npm install -g npm@6
Getting error when running
npm install