Hi, so I was creating a library, then I decided to put it inside the node_modules folder, to test it. Then I ran “npm i ws”, and it deleted all of my library. All of it. All these weeks of work. Is there a way to recover it please ? Really this is so annoying I’ve spent so much work on it
I think it is deleted, not moved to trash or similar. Sorry!
I think of the
node_modules folder as being owned by npm and do not do anything directly in there.
For the future, the command you want is
npm link which lets you install a link to your package without moving it: https://docs.npmjs.com/cli/link