Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running on Windows #161

Closed
aristotelos opened this issue Sep 26, 2022 · 1 comment · Fixed by #234
Closed

Error running on Windows #161

aristotelos opened this issue Sep 26, 2022 · 1 comment · Fixed by #234
Labels
bug Something isn't working

Comments

@aristotelos
Copy link

aristotelos commented Sep 26, 2022

When running on Windows, I get an error because my Node path contains a space:

C:\mypath>npx @cyclonedx/cyclonedx-npm --output-file ../artifacts/npmbom.json
DEBUG | options: {"ignoreNpmErrors":false,"packageLockOnly":false,"omit":[],"flattenComponents":false,"specVersion":"1.4","outputFormat":"JSON","outputFile":"../artifacts/npmbom.json","mcType":"application"}
DEBUG | packageFile: C:\mypath\package.json
DEBUG | projectDir: C:\mypath
DEBUG | lockFile: C:\mypath\package-lock.json
DEBUG | command: npx-cli.js usage detected, checking for npm-cli.js ...
INFO  | gather dependency tree ...
DEBUG | npm-ls: run C:\Program Files (x86)\nodejs\node.exe with ["--","C:\\Users\\myuser\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js","ls","--json","--all","--long"] in C:\mypath
WARN  | npm-ls: STDERR
  'C:\Program' is not recognized as an internal or external command,
  operable program or batch file.

ERROR | npm-ls: errors
  {"error":{},"status":1,"signal":null}

Error: npm-ls exited with errors: ??? 1 noSignal

Maybe related to nodejs/node#7367 (comment)

@jkowalleck
Copy link
Member

Thank you so much for the error report.

I get an error because my Node path contains a space.

Seams about right.
Will have this fixed soon.

@jkowalleck jkowalleck added the bug Something isn't working label Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants