It keeps saying “package-lock.json” exists, but is in the .gitignore … there isn’t even a visible .gitignore? help
Hi, the package-lock.json
file is present, however it’s hidden in the editor by default.
1. Use the terminal
Open the terminal and run cat package-lock.json
to view the contents of the file.
2. Un-gitignore it
If .gitignore
doesn’t exist, create one and add the following to it:
!package-lock.json
and then open the terminal and run refresh
.
Hope this helps!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.