opensbom-generator / spdx-sbom-generator

Support CI generation of SBOMs via golang tooling.
407 stars 110 forks source link

[Question]How to solve the error message:" Plugin yarn return error unable to generate SPDX file, no modules founded. " #244

Open jesse-zhangh opened 2 years ago

jesse-zhangh commented 2 years ago

Summary

Describe the bug - a clear and concise overview of what the bug is. When i exec the command: ./spdx-sbom-generator -p /react-grid-layout-1.3.4 -o out/

There are error tips: Command has completed with errors for some package managers, see details below Plugin yarn return error unable to generate SPDX file, no modules founded. Please install them before running spdx-sbom-generator, e.g.: yarn install

I have installed the yarn $ yarn --version 0.32+git

Background

provide steps to reproduce the behavior, such as:

  1. Download spdx-sbom-generator-v0.0.10-linux-amd64.tar.gz
  2. unzip the package
  3. run ./spdx-sbom-generator -p /react-grid-layout-1.3.4 -o out/

error tips: Command has completed with errors for some package managers, see details below Plugin yarn return error unable to generate SPDX file, no modules founded. Please install them before running spdx-sbom-generator, e.g.: yarn install

Additional Context

I have installed the yarm

$ yarn --version 0.32+git

how to solve this issue? thanks