Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-139] system-info doesn't return correct NPM version

GitHub Issuen/a
TypeBug
PriorityMedium
StatusResolved
ResolutionFixed
Resolution Date2017-11-15T17:26:30.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.0.0
Componentsn/a
Labelsn/a
ReporterFeon Sua Xin Miao
AssigneeEwan Harris
Created2017-11-14T23:13:15.000+0000
Updated2017-11-15T17:26:30.000+0000

Description

Start daemon, load http://localhost:1732/system-info/1.x/info. NPM version value doesn't match the one returned by npm -v
>:~ feonsua$ which npm
/Users/feonsua/.nvm/versions/node/v8.9.0/bin/npm
>:~ feonsua$ npm -v
5.5.1
>:~ feonsua$ npm prefix -g
/Users/feonsua/.nvm/versions/node/v8.9.0
// system-info/1.x/info
	"node": {
		"path": "/Users/feonsua/.appcelerator/appcd/node/v8.9.1/darwin/x64/node",
		"version": "8.9.1",
	},
	"os": {
		"platform": "darwin",
		"arch": "x64",
		"numcpus": 8,
		"memory": 17179869184,
		"name": "Mac OS X",
		"version": "10.13"
	},
	"npm": {
		"home": "/usr/local/lib/node_modules/npm",
		"path": "/Users/feonsua/.nvm/versions/node/v8.9.0/bin/npm",
		"version": "2.15.1"
	},

Comments

  1. Ewan Harris 2017-11-15

    https://github.com/appcelerator/appc-daemon/pull/146

JSON Source