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

npm install #57

Open
kornelijussl opened this issue Nov 5, 2022 · 0 comments
Open

npm install #57

kornelijussl opened this issue Nov 5, 2022 · 0 comments

Comments

@kornelijussl
Copy link

kornelijussl commented Nov 5, 2022

When trying to install node_module dependencies getting an error:

Errorounous dependency: scp2

175 http fetch GET 200 https://registry.npmjs.org/scp2 730ms (cache revalidated)
176 timing metavuln:packument:scp2 Completed in 730ms
177 timing command:install Completed in 2918ms
178 verbose stack TypeError: Invalid Version: 0.1.0a2
178 verbose stack at new SemVer (/home/x/.nvm/versions/node/v16.15.1/lib/node_modules/npm/node_modules/semver/classes/semver.js:38:13)
178 verbose stack at compareBuild (/home/x/.nvm/versions/node/v16.15.1/lib/node_modules/npm/node_modules/semver/functions/compare-build.js:3:20)
178 verbose stack at /home/x/.nvm/versions/node/v16.15.1/lib/node_modules/npm/node_modules/semver/functions/sort.js:2:51
178 verbose stack at Array.sort ()
178 verbose stack at Object.sort (/home/x/.nvm/versions/node/v16.15.1/lib/node_modules/npm/node_modules/semver/functions/sort.js:2:36)
178 verbose stack at Advisory.[calculateRange] (/home/x/.nvm/versions/node/v16.15.1/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/advisory.js:169:28)
178 verbose stack at Advisory.load (/home/x/.nvm/versions/node/v16.15.1/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/advisory.js:157:28)
178 verbose stack at Calculator.[calculate] (/home/x/.nvm/versions/node/v16.15.1/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/index.js:60:14)
178 verbose stack at async Promise.all (index 0)
178 verbose stack at async Map.[init] (/home/x/.nvm/versions/node/v16.15.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:186:9)

Assumably this is due to npm audit, thus setting a flag --no-audit, when running npm install fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant