cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derk-Jan Hartman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8824) Cordova cannot use Artifactory proxy registry, but plugman can
Date Wed, 08 Apr 2015 15:30:15 GMT

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

Derk-Jan Hartman commented on CB-8824:
--------------------------------------

BTW. why aren't the version numbers update in JIRA ? l'm unable to select 4.3.0

> Cordova cannot use Artifactory proxy registry, but plugman can
> --------------------------------------------------------------
>
>                 Key: CB-8824
>                 URL: https://issues.apache.org/jira/browse/CB-8824
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: 4.0.0
>            Reporter: Derk-Jan Hartman
>
> I used the NPM feature of JFrog's Artifactory to setup a proxy registry for the Cordova
plugin registry.
> It is mirroring:
> bq. http://cordova.iriscouch.com/registry/design/app/rewrite/
> I’ve then set my local machine to use the artifactory proxy:
> bq. plugman config set registry http://10.1.35.111:8081/artifactory/api/npm/cordova-io-registry-remote
> This proxy works if I directly used plugman like so:
> bq. plugman install —platform ios —project platforms/ios/ —plugin org.apache.cordova.device
—plugins_dir ./plugins/
> But it fails if I use Cordova directly:
> {quote}
> cordova plugin add org.apache.cordova.device
> Fetching plugin “org.apache.cordova.device” via plugin registry
> npm http GET http://10.1.35.111:8081/artifactory/api/npm/org.apache.cordova.device
> npm http 404 http://10.1.35.111:8081/artifactory/api/npm/org.apache.cordova.device
> TypeError: Cannot read property ‘latest’ of undefined
> at next (/opt/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/lib/cache.js:687:35)
> at /opt/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/lib/cache.js:675:5
> at saved (/opt/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:142:7)
> at /opt/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
> at FSReqWrap.oncomplete (fs.js:99:15)
> {quote}
> I have a suspicion that this is because the Cordova binary is using an outdated version
of NPM, but i'm not sure.



--
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