Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[npm] Fix npm prompt failure when parsing malformed package.json
- Loading branch information
1 parent
1e82695
commit 1cea322
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
1cea322
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tip ! I've applied some logic operators to avoid error messages in PHPStorm terminal:
1cea322
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather not see the npm prompt at all, so I did:
1cea322
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer Katuva's solution. Mine was still having problems until I added that if-statement. Plus having it say "<INVALID_VERSION>" kinda sucks.