Giter VIP home page Giter VIP logo

Comments (9)

vincedy avatar vincedy commented on September 26, 2024 2

The only specified dependencies are development dependencies. To include them you need to use the --include-dev option.

Thanks, that worked out well for me... much appreciated, didn't see this option at all...

from cyclonedx-node-module.

stevespringett avatar stevespringett commented on September 26, 2024
  1. Are there packages defined in the package.json (and package-lock.json)?
  2. What version of npm are you using?

from cyclonedx-node-module.

yq9721 avatar yq9721 commented on September 26, 2024

I hve the same problem,my version of npm is 6.14.6 and node version is 12.18.4.When I delete package.json file,it can works,but it will contains all child dependencies.

from cyclonedx-node-module.

vincedy avatar vincedy commented on September 26, 2024
  1. Are there packages defined in the package.json (and package-lock.json)?
  2. What version of npm are you using?
  1. I have packages defined in package.json and package-lock.json. If I delete package.json the command works and generate the bom.xml... is that the normal behavior? should I delete both package.json and package-lock.json?
  2. npm: '6.13.4'

from cyclonedx-node-module.

stevespringett avatar stevespringett commented on September 26, 2024

And why would you want to delete package.json? Wouldn't that destroy the project?

Please post the package.json so I can reproduce.

from cyclonedx-node-module.

vincedy avatar vincedy commented on September 26, 2024

And why would you want to delete package.json? Wouldn't that destroy the project?

Please post the package.json so I can reproduce.

Yes I believe is not good to delete it... but I was just wondering why without the package.json it seemd to produce something at least. I also attach what I manage to produce without package.json in case you want to have a look
bom.zip

Here you are the package.json as well, thanks for your help

package.zip

from cyclonedx-node-module.

coderpatros avatar coderpatros commented on September 26, 2024

The only specified dependencies are development dependencies. To include them you need to use the --include-dev option.

from cyclonedx-node-module.

stevespringett avatar stevespringett commented on September 26, 2024

Glad its working. Closing.

from cyclonedx-node-module.

coderpatros avatar coderpatros commented on September 26, 2024

@yq9721 if --include-dev doesn't resolve this for you too just open a new issue.

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.