Views 1149 Votes 0 Comment 0
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

Install Node.js and npm using Homebrew on OS X and macOS

Use Homebrew to install and update Node.js on Mac

node01.jpg


Before we get started, are you listening to JS Party? If not, you should be! Maybe start with our episode all about best practices for Node developers. ✊

The default method for installing Node.js is to download a pre-built installer for your platform, install it and make sure it’s on your $PATH.

However, if you’re a Homebrew fan like me and prefer to install all of your packages with it — ensuring your packages are installed using the same commands and directories and allowing Homebrew to easily manage upgrades and updates — then this guide will help you get started.

Install Node.js and npm with Homebrew

First, install Homebrew.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then run brew update to make sure Homebrew is up to date.

brew update

As a safe measure you should run brew doctor to make sure your system is ready to brew. Run the command below and follow any recommendations from brew doctor.

brew doctor

Next, add Homebrew’s location to your $PATH in your .bash_profile or .zshrc file.

export PATH="/usr/local/bin:$PATH"

Next, install Node (npm will be installed with Node):

brew install node

To test out your Node and npm install, try installing Grunt (you might be asked to run with sudo):

npm install -g grunt-cli

If that worked then congratulations — you’ve installed Node.js, npm, and Grunt.

If not — retrace your steps or post a question to Stack Overflow.


출처: https://changelog.com/posts/install-node-js-with-homebrew-on-os-x




?

List of Articles
No. Category Subject Author Date Views
46 Etc [flash] 자동차 엔진의 원리 (4행정 사이클 그림) file hooni 2013.04.23 21226
45 Etc 아두이노 관련 정보.. hooni 2013.04.23 21772
44 Etc 영어공부에 도움될만한 사이트 모음 hooni 2013.05.14 22632
43 Etc 논문(BHO)에 들어갈 내용 집에가서 테스트 해볼 것.. secret hooni 2013.05.28 10230
42 Etc 엑셀 함수 총 정리 ㅎㅎ file hooni 2013.06.05 24465
41 Etc 여러 대학 및 권위있는 기관 강좌 모음 ㅋㅋ hooni 2013.06.17 15122
40 Etc 영작 연습을 위한 실용영어 문장 1001개 (1~500) hooni 2013.06.21 30427
39 Etc 성문 종합 영어 정리된 pdf 파일 file hooni 2013.06.25 30968
38 Etc 영어 아주 쉬운 영작문 강의 01~60 secret hooni 2013.06.25 0
37 Etc 영어 관련 토렌트 secret hooni 2013.06.25 0
36 Etc 영어의 12 시제 (The twelve tenses of English) hooni 2013.07.12 15699
35 Etc [web] 제로보드 XE 템플릿에서 if문에 대해서 알아봅시다 hooni 2013.08.16 19814
34 Etc 베지어 곡선 (Bezier curve) file hooni 2013.08.18 221356
33 Etc [link] 유용한 사이트 링크. hooni 2013.08.19 71465
32 Etc 영어. 외우면 도움되는 필수영어회화 표현 file hooni 2013.09.09 20954
31 Etc [svn] 콘솔에서 svn 사용시 레티나용 이미지 add 안될 때.. hooni 2013.09.25 37501
Board Pagination Prev 1 2 3 4 Next
/ 4