The package-lock.json file in npm serves the same purpose as Bundler's Gemfile.lock and should not be in .gitignore. However, in this project, it is listed in .gitignore. Remove package-lock.json from .gitignore so that it is tracked by Git.
Note: https://docs.npmjs.com/cli/v11/configuring-npm/package-lock-json
The
package-lock.jsonfile in npm serves the same purpose as Bundler'sGemfile.lockand should not be in.gitignore. However, in this project, it is listed in.gitignore. Removepackage-lock.jsonfrom.gitignoreso that it is tracked by Git.Note: https://docs.npmjs.com/cli/v11/configuring-npm/package-lock-json