This behavior is only reproducible with a specific version of resolve, but it is only reproducible on npm 7. I'm pretty sure the deletion of the .git folder is an unfortunate side effect of a missing dependency causing unexpected behavior in safe-publish-latest. This behavior is happening independent of --legacy-peer-deps
Current Behavior:
npm install fails with the error Error: Cannot find module 'camelcase', bails, and the .git folder is deleted
Expected Behavior:
Modules to be installed and .git folder to not be affected.
Steps To Reproduce:
This will permanently damage the repo so please do it in a fresh install
$ git clone https://github.com/browserify/resolve.git
$ cd resolve
$ git checkout v1.17.0
$ npm install
Environment:
OSX 10.15.6
Node.js v14.6.0
npm v7.0.0-beta.2
This behavior is only reproducible with a specific version of
resolve, but it is only reproducible on npm 7. I'm pretty sure the deletion of the .git folder is an unfortunate side effect of a missing dependency causing unexpected behavior insafe-publish-latest. This behavior is happening independent of--legacy-peer-depsCurrent Behavior:
npm install fails with the error
Error: Cannot find module 'camelcase', bails, and the .git folder is deletedExpected Behavior:
Modules to be installed and .git folder to not be affected.
Steps To Reproduce:
This will permanently damage the repo so please do it in a fresh install
$ git clone https://github.com/browserify/resolve.git $ cd resolve $ git checkout v1.17.0 $ npm installEnvironment:
OSX 10.15.6
Node.js v14.6.0
npm v7.0.0-beta.2