[
https://issues.apache.org/jira/browse/CB-8824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Raphael resolved CB-8824.
-------------------------
Resolution: Fixed
This should be resolved in cordova@latest or cordova@nightly. If the issue
persists, please let us know.
> 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: cordova-lib
> Affects Versions: 4.0.0
> Reporter: Derk-Jan Hartman
> Priority: Major
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]