cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-6770) Adding a non-existent plugin should produce a friendlier error
Date Sun, 09 Dec 2018 21:47:00 GMT

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

jcesarmobile closed CB-6770.
----------------------------
    Resolution: Fixed

It now return a better npm message that contains

 404  'org.apache.cordova.keyboard' is not in the npm registry.

So I think we are good

> Adding a non-existent plugin should produce a friendlier error
> --------------------------------------------------------------
>
>                 Key: CB-6770
>                 URL: https://issues.apache.org/jira/browse/CB-6770
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-cli
>    Affects Versions: 3.5.0
>         Environment: OS X
>            Reporter: Shazron Abdullah
>            Priority: Minor
>
> {code}
> $ cordova plugin add org.apache.cordova.keyboard
> Fetching plugin "org.apache.cordova.keyboard" via plugin registry
> Error: Failed to fetch package information for org.apache.cordova.keyboard
>     at /usr/local/lib/node_modules/cordova/node_modules/plugman/src/registry/registry.js:32:20
>     at Request.cb [as _callback] (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/registry/registry.js:251:9)
>     at Request.self.callback (/usr/local/lib/node_modules/cordova/node_modules/plugman/node_modules/request/index.js:148:22)
>     at Request.EventEmitter.emit (events.js:107:17)
>     at Request.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/plugman/node_modules/request/index.js:886:14)
>     at Request.EventEmitter.emit (events.js:126:20)
>     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/plugman/node_modules/request/index.js:837:12)
>     at IncomingMessage.EventEmitter.emit (events.js:126:20)
>     at _stream_readable.js:895:16
>     at process._tickCallback (node.js:339:11)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message