You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Derk-Jan Hartman (JIRA)" <ji...@apache.org> on 2015/04/08 17:26:13 UTC

[jira] [Created] (CB-8824) Cordova cannot use Artifactory proxy registry, but plugman can

Derk-Jan Hartman created CB-8824:
------------------------------------

             Summary: 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:
http://cordova.iriscouch.com/registry/design/app/rewrite/

I’ve then set my local machine to use the artifactory proxy:
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:
plugman install —platform ios —project platforms/ios/ —plugin org.apache.cordova.device —plugins_dir ./plugins/

But it fails if I use Cordova directly:
 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)

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