Ionic and cordova(Latest versions) installation problems - ionic-framework

I'm trying to install the Ionic framework with npm. It successfully installed. But when I try installing new versions of Ionic and Cordova, I was unable to install and Error messages are coming frequently in the ubuntu terminal.

I had a same problem but i recovered it using following command:
npm install -g cordova ionic --verbos
if its not work then you need to try yarn. you can download and install form https://yarnpkg.com/lang/en/docs/install/ this website
After install, run the following command
yarn add global cordova
yarn add global ionic

Related

How to solve: Detected locally installed Ionic CLI, but it’s too old -- using global CLI?

ionic -v results in this warning:
[WARN] Detected locally installed Ionic CLI, but it’s too old -- using global CLI.
How to uninstall local Ionic CLI?
ionic-cli has been updated to version 4.0.1 a couple of days ago.
https://github.com/ionic-team/ionic-cli/blob/develop/CHANGELOG.md
You should remove local cli by npm remove ionic --save-dev and use global one instead.
npm i -g ionic
PS: For ionic v1 project, you have to install #ionic/v1-toolkit now.
https://www.npmjs.com/package/#ionic/v1-toolkit
I had this issue on my app as well.
I no longer had '#ionic/cli' or 'ionic' as a dependency, but every time I re-ran "npm i" it would return as a locally installed item. Looking through my package-lock.json I saw that it was also being installed as a dependency of #types/ionic which I then removed and solved this issue as well.
Remove old ionic:
npm remove ionic
And then install ionic v 4.0.1:
npm install ionic#latest --save
Remove local Ionic CLI npm package:
npm rm ionic --save

Error while installing any plugin

I am using the latest version of Ionic and just getting started with the Ionic Framework. I am trying to add plugins to my projects but always I gets error something like as shown in image. I have checked my internet connection and tried to install some other plugins also but I get the same error always.
Try uninstalling cordova
npm uninstall cordova -g
and installing latest version
npm install -g cordova

Ionic CLI not updating on MAC

I have been trying to update Ionic CLI, I can use the install from NPM and it says it is installing version 2, but if I run Ionic --v it returns 1.7.15. I am guessing it is installed locally, but not sure how I can remove it to let it use the updated global one. I have tried manually deleting from the user node_modules and that. Any ideas?
You should just be able to run npm install -g ionic#2.2.2 in terminal and it will update the global version of ionic.
If that doesn't work then just remove ionic (npm uninstall -g ionic) and install again using the command above.

npm uninstall not working for ionic

I have ionic cli installed in my PC
Windows 10 OS
as per new ionic release the beta has to be uninstalled and new ionic need to be installed.
https://github.com/driftyco/ionic/releases
But when I try to uninstall ionic using npm
npm uninstall -g ionic
also
npm uninstall -g ionic#2.0.0-beta.25
after uninstall
I did
npm list -g
the ionic was not shown in the output.
But upon everything when I type
ionic -v or ionic --version
I still see ionic 2.0.0-beta25 in my console.
Tried this multiple times and also there was a solution in forum by one who says there might be old entry. But I am not sure from where this is getting picked.
Is there a way to find out where npm is picking this or where it is installed?
I cant find it under my npm directory.
C:\Users\Bala\AppData\Roaming\npm\node_modules
Output of Where ionic
C:\>where ionic
C:\Program Files (x86)\nodejs\ionic
C:\Program Files (x86)\nodejs\ionic.cmd

Error while installing the ionic framework

I want to install the ionic framework on my windows 8 laptop but it is showing the following warning when i am trying to use the command
npm install -g cordova
I am already installed
1.Nodejs
2.Git-scm
Please Help me to install the ionic framework
Install all necessary dependencies. http://ionicframework.com/docs/guide/installation.html
Download and Install node.js
Install Cordova using the command: npm install -g cordova
Finally install Ionic Framework using the command: npm install -g ionic