I should clarify that I didn’t add it myself. This was added by npm after running the
npm install —save ../path/to/foo.tgz command.
The docs do show that it is
file:.. but I’m not modifying it.
So I made a simple use case of just an app and library and it does work as intended. However, for my larger project with the same commands, prune seems to be removing the locally installed package. I’m not sure why.
List of commands I’m running (assuming lib and app folders with package.json respectively. App does not depend on lib by default:
- cd lib
- npm pack
- cd …/app
- npm i --save …/lib/*.tgz
- npm i
- npm prune --production
Is there a good way to debug
prune better? I tried using
--json arguments but they don’t say why the module is being removed.
Any tips to help me figure out why my package is being removed?