Skip to content

Error trying to add gitignored package-lock.json #7

Description

@joemaller

Steps to reproduce:

  1. Add package-lock.json to .gitignore
  2. Call npm version patch

The version script in package.json should be set to the default: version everything && git add -u

Error looks like this:

npm ERR! code 1
npm ERR! Command failed: git add /test/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! 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions