cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] The .gitignore file is renamed to .npmignore when npm install

Open qiufeihong2018 opened this issue 1 year ago • 1 comments

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

The tgz package I uploaded to npm contains the .gitignore file, but the npm install package becomes .npmignore

Expected Behavior

npm installs the package as it is

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm: 10.8.1
  • Node.js: 20.16.0
  • OS Name:
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

qiufeihong2018 avatar Aug 23 '24 03:08 qiufeihong2018

@qiufeihong2018 Please provide all the details mentioned in the issue template like config and reproduction steps, logs etc.

milaninfy avatar Aug 23 '24 17:08 milaninfy

Closing. If this is still a problem please feel free to reopen this issue, or create a new issue w/ steps to reproduce.

milaninfy avatar Aug 29 '24 15:08 milaninfy