npm install -- save 와 -- save - dev 의 차이

1313 단어 nodejs
어디서 옮 겼 어 요...까 먹 었 어...수첩 에 적 혀 있 기 때문에 컴퓨터 를 정리 하고 필 기 를 해 야 합 니 다.
npm install     npm   ,                  package.json   ,   npm install --save     npm install --save-dev,         --save            package.json    dependencies   ,--save-dev      package.json    devDependencies   ,  :
{
"name": "yo",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-compass": "~0.7.0",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-cssmin": "~0.7.0",
}
}
            。        ,devDependencies       ,        ,        js    gulp-uglify  ,


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2166980-63b3314be8eaa4d1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

       “npm install --save-dev gulp-uglify ” (   )    ,            ,            。dependencies     ,               ,   jQuery   Angular     ,                ,       。
        :
    npm install ,   dependencies devDependencies    ,   npm install --production    NODE_ENV    production ,    dependencies    。

좋은 웹페이지 즐겨찾기