node.js - Why Npm is installing different 40+ modules other other computer but few packages on one -
i dont know why npm has started downloading 40+ modules on npm install package.json contains following dependencies.
"devdependencies": { "typescript": "^1.6.2", "vscode": "0.10.x" }, "dependencies": { "fs": "^0.0.2" } following list started. besides these modules there double of number downloaded , added below didnt show here.
is there way reset. have tried remove modules folder , install again started adding again.
yesterday when run these dependencies on other pc.
headcode correct. npm3 installs dependencies in flat way.
from docs:
while npm2 installs dependencies in nested way, npm3 tries mitigate deep trees , redundancy such nesting causes. npm3 attempts installing secondary dependencies (dependencies of dependencies) in flat way, in same directory primary dependency requires it.
so, if using npm v2.x on 1 machine, , npm v3.x on another, can different folder structures under node_modules folder.


Comments
Post a Comment