Skip to content
정명주(myeongju.jung) edited this page Dec 31, 2017 · 2 revisions

의존성을 local에 추가

$ npm install underscore

의존성을 전역에 추가

$ npm install -g underscore

특정 버전의 의존성을 추가

$ npm install underscore@1.8.0

package.json 생성 $ npm init

package.json에 의존성 정보를 추가하면서 의존성 추가

$ npm install --save underscore

after

  "dependencies": {
    "underscore": "^1.8.3"
  },

package.json을 기반으로 의존성 전체 추가

$ npm install

package.json에 개발을 위한 의존성 추가

$ npm install --save-dev babel-core

after

  "devDependencies": {
    "babel-core": "^6.26.0",
  }

실행 $ node test.js

Clone this wiki locally