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).
Comments: We fixed it properly (by handling arrays for homepages), and also ensure it doesn't happen in the future by handling System.ArgumentException
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).
Comments: We fixed it properly (by handling arrays for homepages), and also ensure it doesn't happen in the future by handling System.ArgumentException