I need to know if the following behavior is normal.
当I为npm install
时,package.json中的每个软件包及其依赖项不再安装nested,但每个依赖项都安装在node_modules
目录中.这使得我的node_modules
目录被炸毁,看起来是这样的:
This happened since I updated npm and node.
Now I run:
npm -v 3.3.6
node -v 4.2.1
python 2.7
windows 7
wamp
我的package.json
文件如下所示:
{
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"laravel-elixir": "^3.0.0",
"bootstrap-sass": "^3.0.0"
}
}
这是标准的laravel package.json
文件.
有没有办法让目录再次嵌套,因为我不喜欢这样一篇超过100个子目录的夸张文章.