Fixed the issue that under OS X, the current shell could not find the command when executing nvm for the first time

echo "source ~/.nvm/nvm.sh" >> .bash_profile

source ~/.bash_profile

$ nvm

When you see output, the nvm installation was successful.

When you see output, the nvm installation was successful. If you encounter the following prompt after closing the shell:

-bash: nvm: command not found

Please execute:

$ source ~/.nvm/nvm.sh

Install Node.js

Install the latest stable version of Node.js using the nvm command




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326014226&siteId=291194637