Use the silent option when listing npm packages

If warnings are output it can't be parsed as JSON.

Fix courtesy of @timcrider.
Merge pull request #14798 from whiteinge/npm-list-ignore-warnings

Use the silent option when listing npm packages