Can not run without package-lock.json #232
-
Please try the package meow, which does not offer a package-lock.json file. I got an Error after I globally installed @cyclonedx/cyclonedx-npm and ran Error: missing package lock file or npm shrinkwrap file |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
SBOM is about the components your software actually ships or bundles. I see your project being a library, rather than an ready-to-go application or a library with bundled dependencies. Your code has no real control over the actual components used on the end-user's side, right? |
Beta Was this translation helpful? Give feedback.
-
the described behavior was eventually changed: |
Beta Was this translation helpful? Give feedback.
SBOM is about the components your software actually ships or bundles.
Without a lockfile or without installing, it is unclear which versions of unpinned(unlocked) dependencies are intended to be actually used. Unless NPM resolved your dependnecies it is unclear which versions were actually used.
I see your project being a library, rather than an ready-to-go application or a library with bundled dependencies. Your code has no real control over the actual components used on the end-user's side, right?
Then an SBOM might nor be a thing you would consider for your use case.