Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Issue: npm ui fails to parse package list [1403]

$
0
0
from martin_codeplex (https://nodejstools.codeplex.com/workitem/1308):

The packagecache.json parser is not properly acting. The relevant code is:
File : nodejs\product\npm\spi\npmgetcataloguecommand.cs(92) : builder.Homepage = (string)homepage;

Try to get a current json-file and parse results from reader. There is a System.ArgumentException with message "Can not convert Array to String." which comes from parsing a homepage attribute that is an array into a string. This case has to be handled in a way.

Quick solution:
Add a catch for System.ArgumentException, so element is skipped.

Proper solution:
Handle attribute “homepage” in case of an array (in addition to a string).

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>