This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270993 - Update Cordova support to latest version
Summary: Update Cordova support to latest version
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-28 21:49 UTC by navdeepsingh.sidhu95
Modified: 2017-06-28 21:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description navdeepsingh.sidhu95 2017-06-28 21:49:43 UTC
I am getting following errors as i try to run cordova code.

check-android-template:
check-cordova-version:
check-cordova-project:
upgrade-to-cordova-project:
create-android:
update-plugins:
cordova plugins 
cordova -d plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git"
saving
Running command: npm install https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git --save
Command finished with error code 1: npm install,https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git,--save
Error: Failed to fetch plugin https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?


As i dug deep into the issue, i can see plugins.properties contains old url format from release 3.0. And cordova released 7.0 in May,2017. Netbeans needs to be updated to support latest version and latest format of commands to manage plugins.