{
"name": "gulpe",
"version": "1.0.0",
"author": "ning",
"description": "一键安装gulp打包环境",
"dependencies": {},
"devDependencies": {
"browser-sync": "^2.11.0",
"clean-css": "^3.4.9",
"csso": "^1.4.4",
"del": "^2.2.0",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.1.0",
"gulp-cleancss": "^0.2.2",
"gulp-css-spriter": "^0.3.3",
"gulp-cssnano": "^2.0.0",
"gulp-htmlmin": "^1.3.0",
"gulp-if": "^2.0.0",
"gulp-imagemin": "^2.4.0",
"gulp-minify-css": "^1.2.3",
"gulp-rev": "^6.0.1",
"gulp-rev-collector": "^1.0.2",
"gulp-sequence": "^0.4.4",
"gulp-uglify": "^1.5.1",
"gulp-uncss": "^1.0.4",
"gulp-useref": "^3.0.4"
},
"license": "MIT",
"homepage": "https://ningning.pw"
}
一直都是安装到项目目录(npm i -save-dev),随着package.json越来越大。我想安装到全局,但是npm i -g安装的时候并不会把依赖的组件安装到全局,而是把我项目文件夹移动到了npm\node_modules下面。
window环境
http://www.kafan.cn/edu/80246226.html
看看这个链接或许有帮助
好像之前有人问过,这个问题我也不怎么清楚
帮你找下链接吧
http://segmentfault.com/q/1010000000396247