cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Kotikov (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CB-11744) `cordova plugin add` does not honor npm registry defined globally
Date Wed, 24 Aug 2016 09:15:21 GMT

     [ https://issues.apache.org/jira/browse/CB-11744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vladimir Kotikov reassigned CB-11744:
-------------------------------------

    Assignee: Vladimir Kotikov

> `cordova plugin add` does not honor npm registry defined globally
> -----------------------------------------------------------------
>
>                 Key: CB-11744
>                 URL: https://issues.apache.org/jira/browse/CB-11744
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: CordovaLib
>    Affects Versions: 6.3.1
>         Environment: Windows 7 x64
> Node 5.1.0
> cordova 6.3.1
> (Also tried using cordova-lib directly; same issue)
>            Reporter: Matt Steele
>            Assignee: Vladimir Kotikov
>              Labels: reproduced, triaged
>
> We have a private NPM registry, configured at the system level (i.e. {{C:\Program Files\nodejs\node_modules\npm\npmrc}}.
Attempting to install plugins with the registry defined here fails as it tries to hit the
public NPM registry:
> {code}
> C:\Users\IGEN261\code\uit\test\6-hwc\dist\hwc\cordova-project-android>cordova plugin
add private-plugin@2.0.5 -d
> No scripts found for hook "before_plugin_add".
> Calling plugman.fetch on plugin "private-plugin@2.0.5"
> Fetching plugin "private-plugin@2.0.5" via npm
> Error: CordovaError: Failed to fetch plugin private-plugin@2.0.5 via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
> Check your connection and plugin name/version/URL.
> Error: Registry returned 404 for GET on https://registry.npmjs.org/private-plugin
>     at C:\Users\IGEN261\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:192:33
>     at _rejected (C:\Users\IGEN261\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:797:24)
>     at C:\Users\IGEN261\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:823:30
>     at Promise.when (C:\Users\IGEN261\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1035:31)
>     at Promise.promise.promiseDispatch (C:\Users\IGEN261\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:741:41)
>     at C:\Users\IGEN261\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:557:44
>     at flush (C:\Users\IGEN261\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
>     at doNTCallback0 (node.js:430:9)
>     at process._tickCallback (node.js:359:13)
> {code}
> My config:
> {code}
> >npm config list
> ; cli configs
> long = true
> user-agent = "npm/3.3.12 node/v5.1.0 win32 x64"
> ; userconfig C:\Users\IGEN261\.npmrc
> progress = true
> ; builtin config undefined
> registry = "http://privaterepo.com"
> {code}
> A workaround is to re-specify the registry in my userconfig {{.npmrc}} but plugman should
honor the registry when it's set at the global level.



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