[
https://issues.apache.org/jira/browse/CB-9291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14627993#comment-14627993
]
Vladimir Kotikov edited comment on CB-9291 at 7/15/15 12:46 PM:
----------------------------------------------------------------
I didn't found any reason for that. Especially due to fact that {{engines}}
option in package.json doesn't actually restrict Node version (see
https://docs.npmjs.com/files/package.json#engines), until {{engineStrict}}
option is not specified (and it isn't).
So the only consequence of {{engines}} presense - the warning message, as shown
in the report
{noformat}
npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current:
{"node":"0.12.6","npm":"2.11.2"})
{noformat}
Anyway it looks confusing, so probably we may remove {{engines}} totally or
make it less strict. E.g. {{node >= 0.10.x}}
was (Author: vladimir.kotikov):
I didn't found any reason for that. Especially due to fact that {{engines}}
option in package.json doesn't actually restrict Node version (see
https://docs.npmjs.com/files/package.json#engines), until {{engineStrict}}
option is not specified (and it isn't).
So the only consequence of {{engines}} presense - the warning message, as shown
in the report
{noformat}
npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current:
{"node":"0.12.6","npm":"2.11.2"})
{noformat}
Anyway it looks confusing, so probably we may remove {{engines}} totally or
make it less strict. E.g. {{node >= 0.10.x}}
> Cordova NPM package does not install when Node >= 0.12.x
> --------------------------------------------------------
>
> Key: CB-9291
> URL: https://issues.apache.org/jira/browse/CB-9291
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: 4.0.0
> Environment: Windows7 x64 with NodeJS 0.12.6
> Reporter: Robert
> Assignee: Vladimir Kotikov
> Priority: Critical
>
> Hi
> I am trying to install cordova in version 5.1.1 (also tried some previous
> versions) using node 0.12.6:
> npm cache clean dep-graph
> npm install -g [email protected]
> Unfortunately, cordova-js depends on an older version of node (~0.10.x) which
> seems the reason for cordova not being installable:
> {noformat}
> >npm install -g [email protected]
> npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current:
> {"node":"0.12.6","npm":"2.11.2"})
> npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current:
> {"node":"0.12.6","npm":"2.11.2"})
> npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"}
> (current: {"node":"0.12.6","npm":"2.11.2"})
> npm WARN installMany normalize-package-data was bundled with [email protected], but
> bundled package wasn't found in unpacked tree
> C:\Users\robert\AppData\Roaming\npm\cordova ->
> C:\Users\robert\AppData\Roaming\npm\node_modules\cordova\bin\cordova
> [email protected] C:\Users\robert\AppData\Roaming\npm\node_modules\cordova
> ├── [email protected]
> ├── [email protected]
> ├── [email protected] ([email protected])
> └── [email protected] ([email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected],
> [email protected])
> {noformat}
> Thanks in advance.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]