Comments (5)
yeah, so for some reason pkg.name is not available:
cyclonedx-node-module/index.js
Line 46 in 1cd7811
from cyclonedx-node-module.
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.
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.
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.
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)
- FF in license file throws error HOT 3
- Invalid or unexpected token in 3.4.1 HOT 2
- URL within ExternalReferences array can contain just a period if project is created by create-react-app
- No dependencies(dependency graph) in the generated bom HOT 1
- bump integration tests: use non-vulnerable components HOT 1
- [YARN] support yarn2/yarn3 HOT 1
- use CDX-JS lib for data models, serialization and everythig. HOT 2
- Question: Does it suffice to run npm install instead of ng build in order to generate the BOM for an Angular project? HOT 2
- chore: have check for license-text file-header
- split code in library and application part HOT 2
- [Yarn] First-use experience has some issues HOT 6
- Exception if #purl is not available HOT 5
- Conflicts between cyclonedx-node-module and cyclonedx-python commands HOT 2
- Is the last element in property "dependencies" meaning "direct dependencies"?
- There are no components in the bom HOT 6
- [PSA] ALTERNATIVES :exclamation: :mega: HOT 1
- Missing feature in Version 4 / cyclonedx-npm to inlcuse License text HOT 3
- "cyclonedx-bom: command not found" when installing [email protected] HOT 3
- SBOM can contain invalid URLs in externalReferences HOT 7
- yarn 3.6.1 lockfile issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclonedx-node-module.