Npm Basic - redutan/redutan.github.io GitHub Wiki
์์กด์ฑ์ local์ ์ถ๊ฐ
$ npm install underscore
์์กด์ฑ์ ์ ์ญ์ ์ถ๊ฐ
$ npm install -g underscore
ํน์ ๋ฒ์ ์ ์์กด์ฑ์ ์ถ๊ฐ
$ npm install [email protected]
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