I just update to ionic beta usin the command lin npm install -g ionic@beta
whenever i run ionic platforms update ios/android
I got this error:
[ERROR] Unknown plugin: @ionic/cli-plugin-.
I just update to ionic beta usin the command lin npm install -g ionic@beta
whenever i run ionic platforms update ios/android
I got this error:
[ERROR] Unknown plugin: @ionic/cli-plugin-.
Post your package.json
please.
{
"name": "myApp",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "2.4.8",
"@angular/compiler": "2.4.8",
"@angular/compiler-cli": "2.4.8",
"@angular/core": "2.4.8",
"@angular/forms": "2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"@ionic-native/core": "3.1.0",
"@ionic-native/splash-screen": "3.1.0",
"@ionic-native/status-bar": "3.1.0",
"@ionic/cli-plugin-cordova": "0.0.10",
"@ionic/storage": "2.0.0",
"ionic-angular": "2.3.0",
"ionicons": "3.0.0",
"rxjs": "5.0.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.7.2"
},
"devDependencies": {
"@ionic/app-scripts": "1.1.4",
"typescript": "2.0.9",
"@ionic/cli-plugin-cordova": "0.0.10",
"@ionic/cli-build-ionic-angular": "0.0.4"
},
"version": "0.0.1",
"description": "An Ionic project"
}
I think this is because the @ionic/cli-build-ionic-angular
package will be renamed to @ionic/cli-plugin-ionic-angular
soon, according to @jthoms1’s reply in an issue I opened a few days ago:
I am reaaly stuck, it’snow 4 days. I am working on project that should be on salesforce using salesforce mobile SDK and i see ionic doesn’t support it at all. the only tutorial i saw is this one
http://coenraets.org/blog/2015/10/ionic2-salesforce-oauth-rest/
of Christophe Coenraets. but it doesn’t work no longer
Actually the issue is that you should be running the command ionic cordova:platforms update ios
. All cordova commands are now namespaced. This should help us in the future as we add more platforms.
Running ionic help
should give you more details on the available commands`
Thanks!
Huh, when did this get released? Isn’t CLI still on 2.2.2?
ionic --version
hm? ionic - npm
Is this not a iOnic CLI 3.0 feature?
@Sujan12
Can we have contact on skype or hangout ?
Regards
that is ionic cli 3 beta 5
I got the same error, ionic 3.0.0 beta 5. started by blank project.
SOLVED: I guess I run:
cordova telemetry on
ionic cordova:plugin ls
So the solution is to use the correct command for Ionic CLI 3 beta:
ionic cordova:plugin ls
instead of ionic cordova plugin ls
in @inetkid’s case,ionic cordova:platform update ios/android
instead of ionic platforms update ios/android
in @Essen’s case.Can you confirm?
This is probably going to sound overly harsh, but I think the fundamental “solution” here is:
Don’t use prerelease software if you’re not willing to take the time to look through the documentation (which describes the new namespaced cordova syntax) that is linked to in the announcement blog post.
You’re not wrong, but as practically all tutorials out there probably won’t update to the new syntax… forever…, it would be great if CLI v3 could handle (simple) cases like this automatically. +1 on this issue maybe: https://github.com/driftyco/ionic-cli/issues/2088