Contents

조회 수 4581 댓글 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





?

  1. [ios] APNS, Remote Push 사용자가 수신을 동의했는지 확인하기

    Date2018.10.19 CategoryDevelop Byhooni Views3350
    Read More
  2. [c#] 툴바 소스.. 개인적으로 만드는거..

    Date2013.04.23 CategoryDevelop Byhooni Views3304
    Read More
  3. Aspect Oriented Programming in Objective-C

    Date2015.05.18 CategoryDevelop Byhooni Views3268
    Read More
  4. [js] URL 파싱하기 (jQuery 안쓰고)

    Date2017.12.14 CategoryDevelop Byhooni Views3155
    Read More
  5. [c] 한글 문자열 출력

    Date2015.11.10 CategoryDevelop Byhooni Views3140
    Read More
  6. [ios] binary를 C코드로 변환

    Date2015.01.03 CategoryDevelop Byhooni Views3135
    Read More
  7. [ios] APNS, Remote Push 수신 시점에서 앱의 3가지 실행 상태

    Date2018.10.19 CategoryDevelop Byhooni Views3130
    Read More
  8. [android] 가속도 센서를 이용한 흔듦(Shake) 감지

    Date2014.11.04 CategoryDevelop Byhooni Views3072
    Read More
  9. [js] 모바일 스크롤 방지(해제)

    Date2015.04.14 CategoryDevelop Byhooni Views3058
    Read More
  10. [swift] 실행시간 측정하기

    Date2021.09.14 CategoryDevelop Byhooni Views3043
    Read More
  11. [Javascript][Ajax] 자바스크립트 강의 산출물

    Date2019.10.05 CategoryDevelop Byhooni Views3039
    Read More
  12. [android] 간단한 SQLIite 예제

    Date2017.06.14 CategoryDevelop Byhooni Views3026
    Read More
Board Pagination Prev 1 ... 58 59 60 61 62 63 64 65 66 67 ... 71 Next
/ 71