[DAEMON-210] system-info: npm detection fails if unable to get npm prefix
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2017-12-14T20:28:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Appc Daemon 1.0.1 |
Components | appcd-plugin-system-info |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2017-12-14T20:11:19.000+0000 |
Updated | 2017-12-14T20:28:44.000+0000 |
Description
The system-info plugin is responsible for detecting npm. It does this by first locating the npm executable in the system PATH, then tries to get the "prefix" by running
npm prefix -g
. However, if this should fail, then the prefix will be undefined
and an exception is thrown when trying to expand the path.
appcd-plugin-system-info master PR: https://github.com/appcelerator/appcd-plugin-system-info/pull/1 appcd-plugin-system-info 1_0_X PR: https://github.com/appcelerator/appcd-plugin-system-info/pull/2