Y
Y
Yuri Avanesov2019-07-23 14:59:10
macOS
Yuri Avanesov, 2019-07-23 14:59:10

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

2 answer(s)
S
Sergey Sokolov, 2019-07-23
@sergiks

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

S
SagePtr, 2019-07-23
@SagePtr

Either not installed, or installed in a directory not set in the PATH environment variable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question