Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error using CLI with protobufjs installed in project due to missing semver #648
protobuf.js version: 6.5.0
Attempting to use the pbjs CLI within a package to generate static module.
The issue appears to be that
Ah, I didn't realize the behavior of the CLI util setup function installing missing CLI dependencies.
The solution I have working at the moment is at: master...Kenny-House:semver-dependency
I've separated the semver install into a specific case at the beginning of the setup, as opposed to being one of the cliDependencies. The exact semver version is checked and installed if it is missing or doesn't match.
I'm happy to submit that as a PR, but I'm not familiar enough with this project's constraints and preferences to know if that solution is acceptable.