cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Kohn (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-9626) Cordova-Lib requires NPM as a dependency
Date Tue, 28 Nov 2017 10:59:00 GMT

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

Andreas Kohn edited comment on CB-9626 at 11/28/17 10:58 AM:
-------------------------------------------------------------

This issue is now breaking our builds completely on Travis with Node 8.9.1:
{code}
$ nvm install lts/carbon
v8.9.1 is already installed.
Now using node v8.9.1 (npm v5.5.1)

$ node --version
v8.9.1
$ npm --version
module.js:538
    throw err;
    ^

Error: Cannot find module 'dezalgo'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/travis/build/Collaborne/collaborne-mobile-app/node_modules/npm/lib/utils/correct-mkdir.js:2:15)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
$ nvm --version
0.33.6
{code}

I've not yet found how to reproduce this completely locally, so it is possible that Travis
does something to aggravate the problem.

For the record, with Travis configured to use lts/boron as NodeJS one can see that something
picks up the crap npm dependency from cordova:
{code}
$ node --version
v6.12.0
$ npm --version
2.15.12
$ nvm --version
0.33.6
{code}


was (Author: ankon):
This issue is now breaking our builds completely on Travis with Node 8.9.1:
{code}
$ nvm install lts/carbon
v8.9.1 is already installed.
Now using node v8.9.1 (npm v5.5.1)

$ node --version
v8.9.1
$ npm --version
module.js:538
    throw err;
    ^

Error: Cannot find module 'dezalgo'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/travis/build/Collaborne/collaborne-mobile-app/node_modules/npm/lib/utils/correct-mkdir.js:2:15)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
$ nvm --version
0.33.6
{code}

I've not yet found how to reproduce this completely locally, so it is possible that Travis
does something to aggravate the problem.

> Cordova-Lib requires NPM as a dependency
> ----------------------------------------
>
>                 Key: CB-9626
>                 URL: https://issues.apache.org/jira/browse/CB-9626
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: cordova-lib
>            Reporter: Robert Baker
>              Labels: backlog, tools-next
>
> cordova-create is installing NPM 2.x in my node modules folder.
> There should be a way around this, it should use the same version I'm already using.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message