I have a fresh installation of ArchLinux, NodeJS (v 5.2.0) and NPM (v 3.5.2). When I try to install any module (for example express-generator
with npm install express-generator
, same problem if I do it globally or any other package) the installation doesn't create a folder with the module's name in the node_modules folder and, inside, his own node_modules with its dependencies. Making myself clear, npm installs the modules and all his dependencies in the topmost level so, when I run a ls
, I get something like this:
node_modules/
bootstrap commander express-generator mkdirp ... etc
Instead of:
node_modules/
bootstrap/
node_modules/...
express-generator/
node_modules/commander mkdirp ... etc
Recently, I tested this procedure in a virtual machine wiht Windows 7 and another with Debian 8 getting the second result. It happend with every module that I installed.
I don't know if that is a "new" behavior of npm's modules or a mistake in any of my configurations. Any help will be grateful. In advance, thank you very much.