Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-210] system-info: npm detection fails if unable to get npm prefix

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2017-12-14T20:28:43.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.0.1
Componentsappcd-plugin-system-info
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2017-12-14T20:11:19.000+0000
Updated2017-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.

Comments

  1. Chris Barber 2017-12-14

    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

JSON Source