Answer the question
In order to leave comments, you need to log in
How to verify node.js installation on macOS?
Hello colleagues!
arose the need to install Gulp on macOS. To do this, you need to initially install node.js.
Installed it, but how to check if it was installed or not?
Google gives the following: In the terminal, enter: node -v and npm -v (check node.js and npm. But the terminal after entering these commands issues:
-bash: node: command not found
-bash: npm: command not found
I understand Node.js tried to download from offsite and install through the installer - it still gives such an error.
How to be?))
Answer the question
In order to leave comments, you need to log in
Maybe the terminal was launched before it was installed, and did not re-read the start scripts, where the folder with node.
1. Try in a new terminal window node -v
2. Typeecho $PATH
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question