cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yohan Lasorsa (JIRA)" <>
Subject [jira] [Commented] (CB-9626) Cordova-Lib requires NPM as a dependency
Date Fri, 01 Sep 2017 06:54:00 GMT


Yohan Lasorsa commented on CB-9626:

[~stevegill] This is not the behavior I'm seeing on Windows 10, see this log and notice the
NPM version:
cordova platform add android@6.2.1

Using cordova-fetch for cordova-android@6.2.1
Error: Failed to fetch platform cordova-android@6.2.1
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm WARN invalid config loglevel="notice"
npm WARN unmet dependency C:\node\test\node_modules\are-we-there-yet requires readable-stream@'^2.0.6'
but will load
npm WARN unmet dependency C:\node\test\node_modules\readable-stream,
npm WARN unmet dependency which is version 1.0.34
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\node\\test\\node_modules\\npm\\bin\\npm-cli.js"
"install" "cordova-android@6.2.1" "--save"
npm ERR! node v8.4.0
npm ERR! npm  v2.15.12

My install has npm 5 though:
npm -v

So fetch is definitely using that outdated NPM version, at least on Windows.

> Cordova-Lib requires NPM as a dependency
> ----------------------------------------
>                 Key: CB-9626
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: cordova-lib
>            Reporter: Robert Baker
>              Labels: backlog, tools-next
> I'm using NPM 3.x (3.3.2) and cordova-create is installing NPM 2.x in my node modules
> There should be a way around this, I rather not have a copy of NPM (especially an older
copy) in my node_modules.
> NPM 3.x is stable, included in node 5.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message