install cordova failed with node.js command prompt - node.js

what is my problem? is it successfully installed or failed? It doesn't seem right for me.

Cordova was installed successfully. You are looking at the dependency tree, so don't worry.
Bear in mind that you have installed the CLI tools. You have to actually create a cordova project with the command before you will see a cordova project.
cordova create <Your project name>

Related

could not build apk or run it on to a device

i was able to build and test apk on to my device by cordova run android,
now suddenly it got stuck could someone help me to fix this issue, i waited almost for 20 min but no changes.
This image has my ionic info and my build part
I reinstalled platform, updated android studio, npm cache clean. but nothing success full.
I think there is something wrong with the gradle, maybe it is being downloaded, which take forever..
You might wanna mannually download the gradle and specify the downloaded path in yout_app_directory/platforms/android/cordova/builders/GradleBuidler.js => maybe somewhere around line 202 var distributionUrl = 'your_gradle_path'
Follows this
cordova platform rm android
Cordova platform add android
Open emulator or connect Device to the system then
Cordova run android
This will help you .
use command 'ionic cordova run android'
or
Update node version. The version you are using is 6.11.0 but ionic is 3.5.0. so please update node version and check again
or
If you are not using ionic3, then you can downgrade your ionic version using a command 'npm install -g ionic#2.2.0'. then use 'ionic run android'

Appcelerator Unable to locate cli executable

I am using OSX El Capitain and have just downloaded Appcelerator Studio. After the installation I tried to run it and when I try to log in I receive this error message: Unable to locate CLI executable (print screen below). I have already installed NodeJs downloaded directly from Appcelerator website.
How could I solve this?
There could have been an issue installing the the CLI depending on permissions. Appcelerator Studio installs node (if required), appcelerator CLI, Titanium CLI and others into a package underneath the AppceleratorStudio.app package. This is to ensure that it has those available.
I would recommend checking your permissions and potentially re-installing Appcelerator Studio from the link :
web.appcelerator.com
Additionally you could install the CLI's globally using the following commands:
sudo npm i -g appcelerator
sudo npm i -g titanium
sudo npm i -g alloy
Once they are installed, see about running studio again to see if you still have issues.
Maybe your CLI is not be installed properly that's why you get this error. So try to install the CLI manually through the terminal respectively
sudo npm install -g appcelerator
appc use latest
appc setup
sudo npm install -g alloy
Here's the documents link -
https://web.appcelerator.com/product/cli
Then open the studio. Hope this helps.
Regards,
Appcelerator support.
Apart from the reason given by #bert-g, it might also because an old version of node (i.e. node 0.10) was installed instead of 0.12.
I was using nvm for node version control. When starting the app from application icon, it stuck at the same screenshot. Therefore I have tried to start the app from console (i.e. /Applications........./AppceleratorStudio) and it complains my node version should be 0.12. Used nvm install 0.12 and run from console again, it works!
So whenever dev tools have problems with CLI things, the first thing I do is reinstall Xcode. Fixed everything almost every time.
This should unlink the libraries, uninstall, and remove Xcode
Go to Terminal and run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo rm -rif ~/Applications/Xcode.app
Then go to the App Store and reinstall Xcode
Do make sure you are up to date, install the CLI tools from HERE
You need both Xcode and the CLI tools. I am not sure if the CLI tools are downloaded with Xcode so make sure by downloading both.
Please let me know if this works!
Update: Must have Appcelerator CLI installed and configured as well

Phonegap create project error - "module not found"

I have installed node.js(node-v4.2.3-x64) in my windows system. I followed the exact tutorial on getting started in phonegap website. The nodejs installed successfully and when I create new project using phonegap create my-app, It shows module not found error. I have attached screenshot for reference. Kindly help me..
Try doing npm install first, and then run phonegap create my-app.
You don't need to do npm install everytime you create a new one, just the first time because that installs any and all the packages that nodejs requires but can't find.
Also if that does not work try doing npm install cordova -g and npm install phonegap -g.

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.

How to do environment setup for jhipster for java development

I am new to JHipster.I have gone through all the steps for JHipster SetUp in Windows.
First Issue :
Unable to create Jhipster Project
I have followed the below steps.
1.Install Java from the Oracle website.
2.Install Maven (recommended). If you prefer to use Gradle instead, don't install it, as JHipster ships with the Gradle Wrapper.
3.Install Git from git-scm.com. We recommend you also use a tool like SourceTree if you are starting with Git.
4.Install Node.js from the Node.js website. This will also install npm, which is the node package manager we are using in the next commands.
5.Install Yeoman: npm install -g yo
6.Install Bower: npm install -g bower
7.Depending on your preferences, install either Grunt (recommended) with npm install -g grunt-cli or Gulp.js with npm install -g gulp.
8.Install JHipster: npm install -g generator-jhipster.
But i am getting errors while creating JHipster project using command prompt.
Second Issue :
How we can import the existing project from JHipster git to eclipse
I downnloaded a sample JHipster project fro git and while trying to import the same project in to workspace i am facing an error like:
jdt apt pluging is not getting in eclipse to build that project....
Rather than Juno, I would suggest using Spring Tool Suite - http://spring.io/tools/sts
It's an Eclipse distribution that bundles a comprehensive set of plugins enabling one to work with Spring projects.
I found Eclipse to be weak when working with Javascript and HTML. I switched to Intellij almost a year ago and am very happy with the decision.

Resources