When I check the version of Node, it says
v8.0.0
but when I check the version of NPM, it says
bash: npm: command not found
Previously, my action was
npm install -g "@angular/cli"
That's when it consistently shows the npm: command not found message.
I tried searching for possible solutions but none worked like the brew and others.
The npm file should be in /usr/local/bin/npm. If it's not there, install node.js again with the package on their website. This worked in my case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With