Install cordova on mac osx el capitan - node.js

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

Related

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>

Got error while installing Cordova/Ionic in Windows PC

I am new in Mobile Development and I have just starting to learn Phonegap and Ionic to make Mobile Application.
But, while installing the Ionic Framework in my Windows 7 PC I am getting following errors:
Your system information:
Cordova CLI: Not installed
Ionic CLI Version: 2.1.14
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v4.6.1
Xcode version: Not installed
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
Node and npm already installed on my machine.
npm install -g cordova
npm install -g cordova ionic
try it.
i hope you installed node.js from nodejs.org and git files.....
1 step:
open cmd with "run as administrator"...then type npm install cordova(it will take some time to install)....
2 step:
now, npm install ionic
try it with a little bit patience...because to resolve this problem, it had took around 2 hours for me.
Thank you
This seems to be a bug with Ionic/Cordova. What worked for me was to opt into telemetry by running cordova telemetry on. I was able to run cordova telemetry off again afterwards, and the error was still gone.

Error while installing ionic framework

I have looked at the other questions and answers but still my issue is not solved.
I have successfully installed node.js
Node version: 0.12.7
NPM version: 2.11.3
Now when I install Cordova, there are some warnings but it does get installed.
After that when I try to install ionic, it shows all errors and doesn't install.
I am on a Windows machine... so I am not using the 'sudo' in the command.
I haven't also tried to install the JDK, Apache Ant and Android SDK. Are they needed while installing?
Please let me know if you want screenshots.
Thank you
In windows system there is no need to write sudo,we can use npm install -g ionic to install ionic framework
Steps to work Ionic Framework
1)you have to install nodeJS
2)you have to install Java and configure it's path in environmental variables.
3)you have to install Apache-ant
4)you have to install Android-sdk and configure it's path in environmental variables
for reference please see these links Install Ionic Framework, Ionic frameowrk on windows7,8
For any queries reply
Try running command prompt as an administrator before running the commands, that always fixed it for me.

Phonegap installation failure. Sticking to version 0.9.4 by default

Ive been trying to install phonegap for hours now. For some reason by default it installs version 0.9.4 (when I do npm install -g phonegap). If I specify to use latest version (npm install -g phonegap#5.0.0-0.28.1) I get tonns of errors for almost every dependency out there. Tried reinstalling node, removing modules, clearing npm cache, etc.
Windows 7
Node version 0.12.5 (x64)
Npm version 2.11.2
I had this problem before with my Mac
to fix this, i just simply ran
npm update -g phonegap
and behold it updated itself to 5.0.0

Warning installing ionic 2

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.

Resources