UPDATED

How to Install npm on Mac | brew install node

Simple and easy to install npm on Mac if you have brew already installed on mac


0 contributions

451 Views 3
 
 Tags    #tech(9)  
Q.
A.
brew install node

Command to Install npm on mac

brew install node

Is npm Installed Already?

➜  ~ type node
node not found

Npm Installation Log

➜  ~ brew install node
==> Installing dependencies for node: icu4c
==> Installing node dependency: icu4c
==> Downloading https://homebrew.bintray.com/bottles/icu4c-59.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring icu4c-59.1.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/icu4c/lib
    CPPFLAGS: -I/usr/local/opt/icu4c/include

==> Summary
🍺  /usr/local/Cellar/icu4c/59.1: 246 files, 65.4MB
==> Installing node
==> Downloading https://homebrew.bintray.com/bottles/node-8.4.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring node-8.4.0.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/node/8.4.0: 4,152 files, 47.3MB

Npm Installation Check Mac

➜  ~ type node;type npm
node is /usr/local/bin/node
npm is /usr/local/bin/npm

Npm Versions Check

➜  ~ npm -v
5.3.0
➜  ~ node -v
v8.4.0
➜  ~


Please login before Adding Contribution

LOGIN


Input Item is required

{{value.error}} Invalid Url Found


{{value.title}}

{{value.description}}

Source:{{value.url}}
{{value.error}} {{value.serror}} Input Item is Required





Source:{{value.cite}}





{{value.error}} Input Item is Required



Instagram Logo
{{value.error}} Input Item is Required



{{value.error}} {{value.serror}} Input Item is Required





{{value.snippet.title}}

{{value.snippet.description|truncate:'20':'...'}} {{value.snippet.channelTitle}}
Views {{value.statistics.viewCount|number}}


Preview will appear here..
No Gifs Found