问题
For some reason, after I restart Terminal, I won't be able to execute node anymore. Trying so results in the following error:
-bash: node: command not found
I tried removing node and reinstalling it. That works, but as soon as I restart Terminal, the magic is lost.
How can this be?
回答1:
could the magic involve setting the PATH variable so node would be on the path if so then add the magic to your .bashrc?
来源:https://stackoverflow.com/questions/6786378/after-restarting-terminal-i-can-no-longer-execute-node