Contents

조회 수 1437 댓글 0
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

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
번호 분류 제목 글쓴이 날짜 조회 수
309 Develop [c] 마우스 따라다니는 고양이 - 네코95 (WinAPI) file hooni 2013.04.23 7954
308 Develop [c] 로또(Lotto) 번호 생성기 file hooni 2013.04.23 7179
307 Develop [c] 레포트용으로 제출했던 여러 소스코드 모음 file hooni 2003.04.23 8115
306 Develop [c] 라인수 입력받아 마름모꼴 출력하기.. hooni 2003.04.23 6897
305 Develop [c] 디피-헬만 키교환(Diffie–Hellman key exchange) 샘플 코드.. ㅋㄷ file hooni 2013.04.23 9119
304 Develop [c] 도스 공격(DoS Attack) 프로그램 file hooni 2013.04.23 11597
303 Develop [c] 도메인(호스트)으로 IP정보 알아오기.. (nslookup과 비슷) file hooni 2013.04.23 6941
302 Develop [c] 도메인 소켓(Unix Domain Socket) UDP file hooni 2013.04.23 9307
301 Develop [c] 더블(이중) 연결리스트 예제.. file hooni 2013.04.23 7475
300 Develop [c] 달팽이 배열? 인지 먼지.. ㅋㅋ hooni 2013.04.23 7149
299 Develop [c] 단어 입력/수정 프로그램 소스 file hooni 2003.04.23 7048
298 Develop [c] 단기과정[01/24] 정렬 알고리즘 hooni 2003.04.23 6972
Board Pagination Prev 1 ... 68 69 70 71 72 73 74 75 76 77 ... 98 Next
/ 98