Victoria
Victoria

Reputation: 335

Issue with package-lock.json while publishing the project

I'm trying to publish my project, and constantly get the same error in logs:

Would you have any idea how to fix that?

18 error Command failed: git -c core.longpaths=true add D:...\main\backend\package-lock.json
18 error The following paths are ignored by one of your .gitignore files:
18 error package-lock.json
18 error Use -f if you really want to add them.
19 verbose exit [ 1, true ]

Upvotes: 0

Views: 45

Answers (1)

Rob Evans
Rob Evans

Reputation: 2874

delete package-lock.json its not necessary, so much so someone went to the effort to ignore it via the .gitignore file. A new one will be generated each time the project is rebuilt anyway.

Upvotes: 1

Related Questions