I'm looking in google about how to show node js version or how will I work with npm? If i do it
npm -v
even i already install it with brew install node
. Result always
env: node: No such file or directory
I have already decided many times for this, but could not. this is the command i tried already:
sudo apt-get install nodejs-legacy
sudo ln -s /usr/local/bin/node /usr/bin/node
brew unlink node
brew link node
I can not start the task because of this. Help me guys. This work before I used this command brew link --overwrite node
. Now I have a problem, I no longer work with npm. I'm actually new to this. Now I do not know how to fix it.
Update
, npm list
. , , npm install
. " env: node: ", npm -v
, . npm -v