- Node.js Web Development
- David Herron
- 146字
- 2021-06-25 21:53:59
Installing on macOS with Homebrew
Homebrew is another open source software package manager for macOS, which some say is the perfect replacement for MacPorts. It is available through their home page at http://brew.sh/. After installing Homebrew using the instructions on their website and ensuring that Homebrew is correctly set up, use the following:
$ brew update
... long wait and lots of output
$ brew search node
==> Searching local taps...
nodelibbitcoin-node node-build node@6 nodeenv
leafnode llnode node@4 nodebrew nodenv
==> Searching taps on GitHub...
caskroom/cask/node-profiler
==> Searching blacklisted, migrated and deleted formulae...
Then, install it this way:
$ brew install node
...
==> Installing node
==> Downloading https://homebrew.bintray.com/bottles/node-8.9.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring node-8.9.1.el_capitan.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary/usr/local/Cellar/node/8.9.1: 5,012 files, 49.6MB
Once installed this way, the Node.js command can be run as follows:
$ node --version v8.9.1
推薦閱讀
- DevOps with Kubernetes
- 新編Premiere Pro CC從入門到精通
- Linux Device Drivers Development
- Mastering Android Development with Kotlin
- Xcode 6 Essentials
- Java程序設(shè)計(jì)教程
- 計(jì)算機(jī)組裝與維護(hù)(第二版)
- 高性能PHP 7
- Building a Media Center with Raspberry Pi
- Java EE輕量級(jí)解決方案:S2SH
- C#程序開發(fā)參考手冊
- HTML5 and CSS3:Building Responsive Websites
- 計(jì)算機(jī)軟件項(xiàng)目實(shí)訓(xùn)指導(dǎo)
- Python Business Intelligence Cookbook
- PHP面試一戰(zhàn)到底