cli
cli copied to clipboard
[BUG] 'npm install' deletes custom node modules
Is there an existing issue for this?
- [x] I have searched the existing issues
This issue exists in the latest npm version
- [x] I am using the latest npm
Current Behavior
my custom node_module got deleted after doing npm install -D vite, its not vite's fault, everything from npm would delete it
Expected Behavior
well, my stuff shouldnt be gone
Steps To Reproduce
- make a node_modules diretory with a new folder in it, put anything you want in it, like an important part of your app
2.
npm installanything, likenpm install -D vite3.boom your code is gone
Environment
- npm: all versions
- Node.js: v22.11.0
- OS Name: windows 10
- System Model Name: windows?
- npm config: ``
I would like to contribute here, I request you to assign me
@nikunj-kohli are you already working on the issue?
Hi @kchindam-infy, is this in progress or can I work on it ?