Invalid package.lock in 11.1.2 release
- Dominant language
- JavaScript
- Stars
- 95
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
`tree-sitter` is referenced as an optional peer dependency by `@tree-sitter-grammars/tree-sitter-yaml` (which is pulled in by the Swagger/OpenAPI tooling chain), but `tree-sitter has no entry in package-lock.json.
This causes `npm ci` to fail.
```
npm error code EUSAGE
npm error
npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm error
npm error Missing: tree-sitter@0.22.4 from lock file
```
Contributor guide
Research direction
Inspect package-lock.json and the package dependency chain involving @tree-sitter-grammars/tree-sitter-yaml. Run npm install to update the lock file, then verify that npm ci succeeds and that tree-sitter@0.22.4 is present in the lock file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100