Created
October 17, 2017 05:17
-
-
Save aayushdrolia/3c8928717efc34ccc5806f6f7590b486 to your computer and use it in GitHub Desktop.
Command to install npm in mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install command | |
$ brew install node | |
# to check if node is installed | |
$ node -v | |
# to check if npm is installed | |
$ npm -v | |
# to make sure HomeBrew has latest version of node packages | |
$ brew update | |
# upgrade node command | |
$ brew upgrade node | |
# uninstall command | |
$ brew uninstall node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment