Warning installing ionic 2 - node.js

I´m trying to install ionic 2 in my windows 10 64 bits.
My npm version is 3.10.9
When I tried to install with this line:
npm install -g --save ionic cordova
The CMD says:
A lot of people thinks I can still working, but, the fact is: not found command ionic, so I don´t know what to do.

I just had to restart the computer. Then the computer recognize the enviroment variable.

Related

Can't successfully run the command npm install --save-dev --save-exact #ionic/cli-plugin-angular#latest on ionic 3.2.0

I'm trying to set up a project using
ionic version 3.2.0
Cordova CLI: 8.0.0
Node 12.13.1 (lts)
Using Windows 10 (If it helps)
When I try to run the command ionic cordova platform add android#6.3.0 the terminal prompts me ? Looks like this is an angular project, would you like to install #ionic/cli-p lugin-angular and continue? (Y/n) and then when I press y and ENTER key the error message comes out.
Tried to run this command npm install --save-dev --save-exact #ionic/cli-plugin-angular#latest individually but the same error shows. Looked for and tried a lot of solutions but it doesn't work. This is getting very frustrating. Can Any of you guys help me?
Some solutions that I tried previously which had not effect on the error. It keeps on coming.
npm install -g #angular/angular-cli (Still prompts me to run ? Looks like this is an angular project, would you like to install #ionic/cli-p lugin-angular and continue? (Y/n) Then comes the Error)
npm set registry https://registry.npmjs.org/ (No change on the Error message)
npm install #ionic/cli-plugin-cordova npm uninstall -g ionic npm install -g ionic#3.2.0
(Same Error Pops up)
*New to Ionic & Cordova. Can Anyone help?
You could try deleting your node modules then run npm install...worked for me an ionic 3 project.

Installing Ionic - The term 'ionic' is not recognized

I am having trouble installing node.js and npm on my computer. I am running Windows 10 Pro x64, and using Windows Powershell (admin).
I am running node.js 9.10.1 and npm 5.8.0
Here's a screenshot of the error:
As you can see from the screenshot, I installed ionic cordova using the npm install -g ionic cordova command. (I don't know what the difference between that and npm install -g ionic is, though.)
I tried changing the windows PATH -thing, but I'm not sure if I did it correctly. (In the path-environment-variable I added a path to 'C:\Users\Peter\AppData\Local\npm' and one to 'Z:\Program\nodejs' where I installed node.js.)
Try using Roaming instead of Local. I think that installing with -g should go in Roaming.
C:\Users\Peter\AppData\Roaming\npm>

error to ionic in ubuntu 17.10.1

friends I have the following problem to install ionic
I already have correctly installed nodejs and npm
then install ionic with sudo npm install -g ionic
when I try to consult the installed version, I find the following error:
ionic –v
[ERROR] Unable to find command: –v
You may need to be in an Ionic project directory.
the strange thing is that I was able to install monaca and that works well, although monaca also uses ionic.
What I can do? Thanks
You are using a dash character (–) instead of the hyphen (-).
When I run your command (ionic –v) on Ubuntu 16.04 I get that same error, but then if I use the hyphen (ionic -v) I get the version out.

Uninstalling Cordova and Ionic not working

I am trying to uninstall Cordova and Ionic from my mac. I have run sudo npm uninstall ionic cordova and also with -g however when I run cordova --version or ionic --versions it keeps coming back with version numbers and it all still works normally.
I have checked the directories of both local and global npm install locations and the folders aren't there, when I run the command after the first time it throws an error that it can't find the folders.
I have gone so far as to completely remove NodeJS from my machine but to no avail. Where else is cordova and ionic installed? How do I completely remove them from my machine?
So for some reason, npm uninstall does not deal with the files in the opt directory, found the rougue folders and removed. Problem solved.

Install cordova on mac osx el capitan

Is there anyway to install cordova on OSX El Capitan?
I run into all kinds of issues here, not able to install it.
Like a warn for mini match being a lower version then 2.0.3
But the version was the latest. I tried downgrading.
I tried to ask a question https://issues.apache.org/jira/browse/CB-11927 cordova, but they said that cordova was installed correctly.
So i went on to create a cordova project.
2016s-Mac-mini:~ Thuis$ sudo cordova create HalloApp
? May Cordova anonymously report usage statistics to improve the tool over time? Yes
(Y/n) Y
Thanks for opting into telemetry to help us improve cordova.
Error: Cannot find module 'config-chain'
I found a work around for this:
npm install -g config-chain
npm install -g nopt
npm install -g umask
npm install -g nom-registry-client
Then tried again:
Now It's the error:
Error: Cannot find module 'npmlog'
I have not found a solution for this.
Is there anyone succeed at installing the latest version of cordova on OS X El Capitan?
This is what I got working so far, however with Warnings and not the latest versions.
OSX El capitan
Netbeans 8.1
Node.js and npm = V4.6.0 LTS
Xcode 8.0
Cordova 6.3.1
CLI:
sudo npm install -g cordova
Here i got warning about the version of mini match
sudo cordova create MyApp (this works)
cordova add platform :doesn't work in terminal but Netbeans can do this
Netbeans:
This works, and build was succeed, but there's some trouble with the iOS simulator and the whole system get stuck. I will open a new question for that.
Many thanks to Robert Klep
Dank u wel

Resources