cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Nasyrov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9954) Update npm dep to npm@3
Date Wed, 14 Dec 2016 04:04:58 GMT

    [ https://issues.apache.org/jira/browse/CB-9954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15747168#comment-15747168
] 

Mikhail Nasyrov commented on CB-9954:
-------------------------------------

Cordova-fetch proposal is completed (https://github.com/cordova/cordova-discuss/blob/master/proposals/fetching.md,
CB-9858, CB-11349).
However `cordova-lib` still has npm@2 as a dependency.

Having a local installed npm@2 while a user expects system npm@3 or npm@4 leads to unexpected
behaviours during running npm scripts and installing packages by spawned npm processed because
npm@2 install peer dependencies automatically.

It is a critical issue and should be reopened. 

> Update npm dep to npm@3
> -----------------------
>
>                 Key: CB-9954
>                 URL: https://issues.apache.org/jira/browse/CB-9954
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Robert Baker
>            Assignee: Steve Gill
>              Labels: cordova-fetch
>             Fix For: 6.0.0
>
>
> I'm using cordova. My system has NPM@3.3.12  on Node 4.1.2.
> I tried Node 5, NPM 3.3.12, NPM 3.3.6 (was working on 3.3.6 about a month ago). Was working
on Node 4.1.1
> Cordova-Lib has NPM@2 as a dependency, which NPM@2 gets installed under my project node_modules
folder.
> The NPM team recommends Cordova-Lib updates the dependency to use NPM@3 ASAP. https://github.com/npm/npm/issues/10234#issuecomment-153710853
> ```
> async@1.5.0 .cordova\hooks\node_modules\async
> [12:01:32] '<anonymous>' errored after 2.55 s
> [12:01:32] ReferenceError: resolver is not defined
>     at null._onTimeout (c:\git\pos\node_modules\npm\lib\install.js:840:7)
>     at Timer.listOnTimeout (timers.js:92:15)
> [12:01:32] 'cordova:debug' errored after 40 s
> [12:01:32] ReferenceError: resolver is not defined
>     at null._onTimeout (c:\git\pos\node_modules\npm\lib\install.js:840:7)
>     at Timer.listOnTimeout (timers.js:92:15)
> ```



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message