[DAEMON-139] system-info doesn't return correct NPM version
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2017-11-15T17:26:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Appc Daemon 1.0.0 |
Components | n/a |
Labels | n/a |
Reporter | Feon Sua Xin Miao |
Assignee | Ewan Harris |
Created | 2017-11-14T23:13:15.000+0000 |
Updated | 2017-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"
},
https://github.com/appcelerator/appc-daemon/pull/146