Giter VIP home page Giter VIP logo

Comments (5)

coderpatros avatar coderpatros commented on September 26, 2024

read-installed is used to retrieve information about the packages that are installed

from cyclonedx-node-module.

midav7 avatar midav7 commented on September 26, 2024

Could you please expand on this? Is this a CLI argument for cyclonedx-bom ? I'm basically trying generate BOM file having a project cloned on my filesystem.

from cyclonedx-node-module.

coderpatros avatar coderpatros commented on September 26, 2024

Information is read from the files installed into node_modules. So you need to run npm install first.

Or do you not know what is meant by npm install?

from cyclonedx-node-module.

ddurham2 avatar ddurham2 commented on September 26, 2024

Same issue here. I've run npm install ,and ./node_modules is full of packages. I'm also running cyclonedx-bom with -d to include dev packages, but I'm getting the same error w/ or w/o that arg.

I found that it was caused by not installing the cyclonedx-bom package globally (e.g. npm install -g @cyclonedx/bom). I was deliberately installing it locally so as not to pollute the system, and then using
npx @cyclonedx/bom cyclonedx-bom make-bom -d -o bom.xml
to execute the tool, but apparently it does not handle when run in that way.

I was able to make it work by directly accessing the bin via
./node_modules/@cyclonedx/bom/bin/cyclonedx-bom
rather than npx (which I'm possibly using incorrectly https://www.rockyourcode.com/run-locally-installed-npm-packages-without-global-install/)

It would be nice to avoid the requirement for global installation, or recommending in the help how to use it when locally installed, since modifying the system is not always possible or desirable.

from cyclonedx-node-module.

jkowalleck avatar jkowalleck commented on September 26, 2024

all questions answered.
input from @ddurham2 will be considered.

from cyclonedx-node-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.