fix snyk wizard run error on last step in npm apps or yarn apps. - #87
Closed
TaopaiC wants to merge 1 commit into
Closed
fix snyk wizard run error on last step in npm apps or yarn apps.#87TaopaiC wants to merge 1 commit into
snyk wizard run error on last step in npm apps or yarn apps.#87TaopaiC wants to merge 1 commit into
Conversation
Contributor
|
@TaopaiC thanks a lot for this! |
Author
|
Hi @adrukh , I used the npm app in
# pctao @ Taos-MBP in ~/code/snyk on git:master o [3:55:51]
$ cd test/acceptance/workspaces/npm-package
# pctao @ Taos-MBP in ~/code/snyk/test/acceptance/workspaces/npm-package on git:master o [3:55:56]
$ npm i
npm WARN npm-package@1.0.0 No repository field.
# pctao @ Taos-MBP in ~/code/snyk/test/acceptance/workspaces/npm-package on git:master o [3:56:00]
$ node ../../../../cli/index.js wizard
Snyk's wizard will:
* Enumerate your local dependencies and query Snyk's servers for vulnerabilities
* Guide you through fixing found vulnerabilities
* Create a .snyk policy file to guide snyk commands such as `test` and `protect`
* Remember your dependencies to alert you when new vulnerabilities are disclosed
Querying vulnerabilities database...
License issues are not supported by the wizard, use `snyk ignore`
✓ Tested 0 dependencies for known vulnerabilities, no vulnerable paths found.
? Add `snyk test` to package.json file to fail test on newly disclosed vulnerabilities?
This will require authentication via `snyk auth` when running tests. No
Saving .snyk policy file...
Remembering current dependencies for future notifications...
Cannot read property 'name' of undefined |
Contributor
|
Understood, thanks! |
adrukh
pushed a commit
that referenced
this pull request
Jun 7, 2017
Contributor
Author
|
Thank you :) |
This was referenced Nov 24, 2020
This was referenced Apr 12, 2022
This was referenced Mar 5, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
When running
snyk wizard, it fails and shows an error:Cannot read property 'name' of undefinedat last step.It is caused by sending incorrect information into
snyk.monitor.How should this be manually tested?
for yarn apps, we can test it in the test folder:
for npm app: