I\'m learning laravel and follwing this tutorial,
But when I went try and install npm, is says bash: npm: command not found
Just go into npm page and follow the instructions.
If you have already installed nodejs and still getting this error. npm: command not found..
run this
apt-get install -y npm
in redhat base OS (tested in centos 7)
yum install nodejs npm -y
in debian base OS
apt-get install -y npm
If you already installed npm globally on your system, and you are still getting the above error message by using VSCode terminal. Just close your VSCode application and reopen again, that should resolve the issue.
You need to install Node . Visiti this link
[1]: https://nodejs.org/en/ and follow the instructions.