-
Notifications
You must be signed in to change notification settings - Fork 89
NPM Install fails because of git folder #139
Comments
I am not sure what you mean by it fails "sometimes"? The project contains no submodules or other git modules. It might be that the test fixtures contain something that makes npm trip. Can you add what node npm version you're using on your CI? |
Hi |
oooooooooh i see what you're saying. sorry, my bad. the |
Here's what I don't understand. The documentation says that it should never have made it in there.
Source: https://docs.npmjs.com/files/package.json#files And yet, here it is...
|
Hmm... yes, that is really weird. Maybe try releasing with the latest npm version. Looking forward to the next patch release :) |
I am very certain this one is to blame on TravisCI. I've investigated it a bit more and look what I found: https://twitter.com/felixhammerl/status/1176912582382366721 |
Thanks for making this a priority. Glad you found the issue. |
I'm facing the same issue in
|
Would be happy to help dig into this. I believe Travis CI uses dpl under the hood. I'll look into the npm provider to see if there is anything that could be causing the problem |
I've added |
Issue Template
Description
Running npm install sometimes fails because of git folder in scanner-cli.
Is it possible to remove this git folder from the npm package?
Steps to Reproduce
Run npm install
Expected behavior: [What you expect to happen]
It should not fail
Actual behavior: [What actually happens]
npm install fails
Version
1.6.2
Additional Information
Using post-install or pre-install to remove the git folder does not work in our case.
When we run npm ci on the pipeline, this remove command will throw an error because the node_modules folder will be removed.
The text was updated successfully, but these errors were encountered: