在windows上,由于某些原因,当我运行npm install时,它不会安装devDependencies。我想应该是这样。如果我运行npm install——dev devDependencies被安装。我不明白为什么npm install不安装devDependencies,而只安装依赖项。原因是什么呢?我该怎么解决呢?
也许我的package.json有问题?如有帮助,建议如下:
{
"name": "try-brunch",
"version": "0.1.0",
"private": "true",
"devDependencies": {
"brunch": "^2.0.4",
"cssnano-brunch": "^1.1.5",
"javascript-brunch": "^1.8.0",
"sass-brunch": "^1.9.2",
"uglify-js-brunch": "^1.7.8"
},
"dependencies": {
"jquery": "^2.1.4"
}
}