I recently installed a new nodejs 5.x with npm 3.x - the most noticeable change is the flat structure in node_modules - this is a great thing on Windows.
Unfortunately, I noticed that new npm put local paths in package.json for all installed modules. How can I prevent this (or add a relative path there)? I want to copy my node_modules repository to hg so that everyone in the development team will have the same modules. Here is an example of stripped package.json from abbrev package:
{ "_args": [ [ " abbrev@https ://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz", "C:\\Users\\ABC\\Documents\\ABC" ] ], "_where": "C:\\Users\\ABC\\Documents\\ABC" }
"C: \ Users \ ABC \ Documents \ ABC" is the local path
Best wishes,
Sassa source share