npm - fix installing from package.json (#2924) (#2928)

correctly handle cases where a dependency does not have a `version` property because it is either missing or invalid

(cherry picked from commit a0915036f9)

Co-authored-by: Shahar Mor <shaharmor1@gmail.com>
This commit is contained in:
patchback[bot] 2021-07-02 21:57:51 +02:00 committed by GitHub
commit 859bebbfc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- npm - correctly handle cases where a dependency does not have a ``version`` property because it is either missing or invalid
(https://github.com/ansible-collections/community.general/issues/2917).