官方介绍:The missing package manager for OS X(OS X 不可或缺的套件管理器)
You can use this code to install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install node npm
brew install node
Maybe you can down from office web
https://nodejs.org/en/#download
Lts long term support
current
Terminal:
==> Installation successful!
==> Next steps
Run `brew help` to get started
Further documentation: https://git.io/brew-docs
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
https://git.io/brew-analytics
localhost:~ liyang$ brew install node
==> Downloading https://homebrew.bintray.com/bottles/node-6.3.1.el_capitan.bottl
######################################################################## 100.0%
==> Pouring node-6.3.1.el_capitan.bottle.tar.gz
==> Caveats
Please note by default only English locale support is provided. If you need
full locale support you should either rebuild with full icu:
`brew reinstall node --with-full-icu`
or add full icu data at runtime following:
https://github.com/nodejs/node/wiki/Intl#using-and-customizing-the-small-icu-build
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/node/6.3.1: 3,829 files, 39.8M
localhost:~ liyang$
Congratulations for you!
本文介绍了如何在OSX系统中使用Homebrew安装Node.js及其配套的npm包管理器,并提供了详细的步骤指导。
2465

被折叠的 条评论
为什么被折叠?



