[TIMOB-13178] CLI: Alpha package will not install with node v0.8.17 and npm v1.2.0 configuration
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-03-31T13:26:42.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 07 JS, 2013 Sprint 07 |
Components | CLI |
Labels | qe-sdk3.1.0 |
Reporter | Eric Merriman |
Assignee | Christian Sullivan |
Created | 2013-03-23T20:21:37.000+0000 |
Updated | 2017-03-22T17:26:33.000+0000 |
Description
Error
When attempting to install the npm package for the CLI "sudo npm install -g titanium@3.0.25-alpha", I would get two lines, then the install seemed to hang:
npm http GET https://registry.npmjs.org/titanium/3.0.25-alpha
npm http 304 https://registry.npmjs.org/titanium/3.0.25-alpha
npm cache clean gave slightly better results:
npm http GET https://registry.npmjs.org/titanium/3.0.25-alpha
npm http 200 https://registry.npmjs.org/titanium/3.0.25-alpha
npm http GET https://registry.npmjs.org/titanium/-/titanium-3.0.25-alpha.tgz
npm http 200 https://registry.npmjs.org/titanium/-/titanium-3.0.25-alpha.tgz
But the CLI was not installed. We found this:
https://github.com/isaacs/npm/issues/3058
Other QE team members data: working as expected: node: v0.8.16 npm: 1.1.69 also: node: v0.8.3 npm: 1.1.43 also: node: v0.10.0 npm: 1.2.14 also: node: v0.8.17 npm: 1.2.15 The only configs that did not work included npm 1.2.0.
We should see if there is a way _not_ to force the user to update NPM.
The workaround was successful:
The problem is there is a bug in npm where it tries to install .gitignore as a package and is unable to resolve its package.json. See below verbose output for example full install log included also.
The way we would resolve this issue is by republishing the
titanium
node package with out the .gitignoreOne way we can avoid supporting many version of node.js and npm would be to just include the node binary and npm either in the cli tool or in a directory where the specific version can be accessed. We can also add ./bin to the users $PATHS allowing any usage of node or npm from within the folder to use the
bin
s node and npm version. example Install node version 0.8.15Should output node v0.8.15 and npm v1.1.66
Should output system installed version of node and npm
We're not going to ship node with the NM package for now. For the average user, we are asking them to update to Node 0.8.22 which includes a newer version of NPM. Or they can upgrade NPM manually as noted in the workaround above.
Closing ticket as the issue will not fix and with reference to the above comments.