S
S
saveTibet2016-10-20 23:33:57
macOS
saveTibet, 2016-10-20 23:33:57

OSX. After rebooting the system npm command not found. Why?

Installed Node, npm worked. Then I had to restart the computer, open the terminal, enter npm and see "command not found".
If you try to run from under bash, everything works. Help me figure it out, I still can't figure out how to install everything correctly so that it works as it should. What am I doing wrong?
7ef9af9f95de4b119961d9f8e4eeb30d.png
UPD. With nvm there was the same story and a little investigation showed that if, in accordance with the instructions , execute

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

then nvm and npm start working. Well, it’s probably logical, because Node was installed via nvm. So the problem is that the paths are reset somewhere? I don't quite understand how it works yet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-10-21
@alekseyruzov

find where the command is and add that path to $PATH .
www.cyberciti.biz/faq/appleosx-bash-unix-change-se...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question