I am using npm versioned 5.4.2, I have some node_modules, now from 3.x npm module behavior is if the modules inside node_modules directory are not defined in package.json, then npm deletes the modules in node_modules.
how to override this behavior, like I do not want to remove the npm modules already installed even if they are not defined in package.json
If new module is added using "npm install", I do not want to overwrite package.json file.
How to achieve this? Is there any flag in .npmrc?
With regards,
-M-