Ionic no working in cordova 5.0.0


#1

Hello:---->

cordova Update to 5.0.0 plugins the new version is renamed when I run " hello ionic start blank" or sidemenu , I have problems, this is what has the terminal , i have linux mint 17.1…

Creating Ionic app in folder /home/miguel/Cordova/hello based on sidemenu project

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s

Downloading: https://github.com/driftyco/ionic-starter-sidemenu/archive/master.zip
[=============================] 100% 0.0s

Update config.xml
Initializing cordova project
running cordova plugin add org.apache.cordova.device
WARNING: org.apache.cordova.device has been renamed to cordova-plugin-device. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.device and cordova plugin add cordova-plugin-device.
Fetching plugin “org.apache.cordova.device” via cordova plugins registry
Fetching from cordova plugins registry failed: EACCES, mkdir '/home/miguel/tmp/npm-3493-DFp6DkqV’
Fetching plugin “org.apache.cordova.device” via npm
npm http GET https://registry.npmjs.org/org.apache.cordova.device
npm http 404 https://registry.npmjs.org/org.apache.cordova.device
Fetching from npm failed: 404 Not Found: org.apache.cordova.device
Error: 404 Not Found: org.apache.cordova.device
at RegClient. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:14)
at Request.self.callback (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:148:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:876:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:827:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
running cordova plugin add org.apache.cordova.console
WARNING: org.apache.cordova.console has been renamed to cordova-plugin-console. You may not be getting the latest version! We suggest you cordova plugin rm org.apache.cordova.console and cordova plugin add cordova-plugin-console.
Fetching plugin “org.apache.cordova.console” via cordova plugins registry
Fetching from cordova plugins registry failed: EACCES, mkdir '/home/miguel/tmp/npm-3506-WhGg6OTV’
Fetching plugin “org.apache.cordova.console” via npm
npm http GET https://registry.npmjs.org/org.apache.cordova.console
npm http 404 https://registry.npmjs.org/org.apache.cordova.console
Fetching from npm failed: 404 Not Found: org.apache.cordova.console
Error: 404 Not Found: org.apache.cordova.console
at RegClient. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:14)
at Request.self.callback (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:148:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:876:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:827:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
running cordova plugin add com.ionic.keyboard
Fetching plugin “com.ionic.keyboard” via cordova plugins registry
Fetching from cordova plugins registry failed: EACCES, mkdir '/home/miguel/tmp/npm-3519-Pc7mh_MZ’
Fetching plugin “com.ionic.keyboard” via npm
npm http GET https://registry.npmjs.org/com.ionic.keyboard
npm http 404 https://registry.npmjs.org/com.ionic.keyboard
TypeError: Cannot read property ‘latest’ of undefined
at next (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/lib/cache.js:687:35)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/lib/cache.js:675:5
at saved (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:142:7)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
at Object.oncomplete (fs.js:107:15)


#2

Highlights:

  1. plugins have been renamed and Cordova-CLI now supports plugins from the NPM collection.

  2. tags have changed name tags in your config.xml projects. Adding a tag to config.xml, seek and install Cordova prepare, if it is not already installed.

  3. Cordova Android@4.0.0 already been activated and is set as the default version for new projects. Includes support for embedded WebViews!

  4. The template for app Cordova Hello World App, has been transferred to the NPM.

  5. Added ability to manage your plugin dependencies and platform in the config.xml of your project. By adding plugins or platforms, use -save flag to add to config.xml. Example: add android platform -save Cordova. Existing projects can use the plugin cordova cordova platform save and save commands to save all platforms previously installed plugins and the project config.xml. Platforms and plugins will autorestaurados when preparing Cordova is running. This allows developers to manage and share their dependencies between different development environments and coworkers.
    To update your tools:
    • If you have installed Cordova:

  6. npm install -g ionic cordova

  7. To create the project
    ionic start example sidemenu
    the error that tells us is that the name changed plugins are ok … just have to delete the installed plugins

$ cd example
$ cordova plugin rm org.apache.cordova.console
$cordova plugin rm org.apache.cordova.device

and then add the new name

$ cordova plugin add cordova-plugin-console

$ cordova plugin add cordova-plugin-device

I check the network-connection plugin and works perfect on android

$ cordova plugin add cordova-plugin-network-connection

app.js only in the following code agrege

angular.module(‘starter’, [‘ionic’, ‘starter.controllers’])

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}

//--------------------------code
if(window.Connection){
if(navigator.connection.type==Connection.WIFI)
alert(“wifi connection”);
}

//----------------------------

});
})
I do not try on other platforms only android

to download the plugins and see examples of how it works there only that I use the following command ,
folder on your preference
http://cordova.apache.org/docs/en/5.0.0/cordova_plugins_pluginapis.md.html#Plugin%20APIs

— npm i cordova-plugin-geolocation cordova
— npm i cordova-plugin-network-connection

etc…

sorry for my bad English thanks