Giter VIP home page Giter VIP logo

Comments (5)

Drewster727 avatar Drewster727 commented on September 26, 2024

yeah, so for some reason pkg.name is not available:

let purlName = pkg.name.replace("@", "%40"); // Encode 'scoped' npm packages in purl

from cyclonedx-node-module.

stevespringett avatar stevespringett commented on September 26, 2024

I don't think this is fixable.

https://docs.npmjs.com/files/package.json

If you don’t plan to publish your package, the name and version fields are optional.

name is a requirement for Package URL and for Dependency-Track.

from cyclonedx-node-module.

Drewster727 avatar Drewster727 commented on September 26, 2024

Hmm -- well I don't know where to go from here. This was the first project I tested and I'm guessing it's going to be relatively common.

Can we not continue the scan and send that to a log or debug/error output?

from cyclonedx-node-module.

Drewster727 avatar Drewster727 commented on September 26, 2024

OK -- this may be a bug or a misunderstanding on my part.

I have a project structured like so:

project-root\
|--web\ (contains my package.json)
|--api\
|--dataaccess\
|--businesslogic\
|--etc\

When I run: cyclonedx-bom project-root\ (on the root folder) it blows up.
When I run: cyclonedx-bom project-root\web\ it works.

So I'm assuming it is finding package.json and working from there. I thought I could give it a parent folder and it would recursively search for package.json files...

My apologies if this is my misunderstanding.

from cyclonedx-node-module.

lock avatar lock commented on September 26, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.