8000 Fix `npm version` command when `package-lock.json` is gitignored by nwoltman · Pull Request #20154 · npm/npm · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Conversation

nwoltman
Copy link
Contributor

Fixes #17168

Fixes this error:

> npm version minor -m "v%s"
v0.1.0
npm ERR! code 1
npm ERR! Command failed: git -c core.longpaths=true add C:\GitHub\compile-mime-match\package-lock.json
npm ERR! The following paths are ignored by one of your .gitignore files:
npm ERR! package-lock.json
npm ERR! Use -f if you really want to add them.
npm ERR!

This was originally fixed by #17505 but the fix was accidentally undone in #17742.

@nwoltman nwoltman requested a review from a team as a code owner March 24, 2018 06:06
iarna pushed a commit that referenced this pull request Apr 9, 2018
iarna pushed a commit that referenced this pull request Apr 10, 2018
iarna pushed a commit that referenced this pull request Apr 10, 2018
iarna pushed a commit that referenced this pull request Apr 10, 2018
iarna pushed a commit that referenced this pull request Apr 11, 2018
iarna pushed a commit that referenced this pull request Apr 11, 2018
iarna pushed a commit that referenced this pull request Apr 11, 2018
@iarna
Copy link
Contributor
iarna commented May 3, 2018

Thank you for this! It shipped in 6.0.0! =)

@iarna iarna closed this May 3, 2018
@nwoltman nwoltman deleted the fix-npm-version branch May 4, 2018 02:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm version fails if package-lock.json is gitignored

2 participants

0