“npm 安装"在 node_modules 目录中安装所有依赖项,而不是将它们嵌套
我需要知道以下行为是否正常.
I need to know if the following behavior is normal.
当我 npm install
时,我的 package.json 和依赖项中的每个包都不再安装嵌套,但是每个依赖项安装在 node_modules
目录中.这使得我的 node_modules
目录看起来像这样:
When I npm install
, each package from my package.json and the dependencies, don't get installed nested anymore, but each dependency is installed in the node_modules
directory. That makes my node_modules
directory blown and look like this:
这是因为我更新了 npm 和 node.
This happened since I updated npm and node.
现在我跑:
npm -v 3.3.6
node -v 4.2.1
python 2.7
windows 7
wamp
我的 package.json
文件如下所示:
My package.json
file looks like this:
{
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"laravel-elixir": "^3.0.0",
"bootstrap-sass": "^3.0.0"
}
}
这是标准的 Laravel package.json
文件.
It's the standard laravel package.json
file.
有没有办法再次嵌套目录,因为我不喜欢这种有100多个子目录的文章.
Is there a way to have nested directories again, because I don't like such a blown article with over 100 sub directories.