Help with installing Ionic Framework for Mobile Development

Asked

Viewed 2,597 times

2

To install the nodejs more clearly, I followed the example given through the site below, in the error note below, says that the version I am using is: 0.13.0-pre

https://askubuntu.com/questions/49390/how-do-i-install-the-latest-version-of-node-js

I followed this tutorial to install the Ionic Framework software on my Ubuntu 14.4 LTS:

http://tutsmais.com.br/blog/ionicframework/o-que-eu-preciso-saber-para-comecar-com-ionic-framework/

At the end of the installation attempt, I’m getting the following error message, someone knows what I’m doing wrong:

npm ERR! Linux 3.16.0-46-generic
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v0.13.0-pre
npm ERR! npm v2.14.1
npm ERR! code ENOTSUP
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your version of node/npm: [email protected] 
npm ERR! notsup Required: {"node":">= 0.9"}
npm ERR! notsup Actual: {"npm":"2.14.1","node":"0.13.0-pre"}

1 answer

5


Like me, there must be other people who have suffered in this, so I’ll leave the answer that solved my problem:

1) I downloaded the installation package:

wget https://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz

2) Then I stopped the directory to unzip the Node:

cd /usr/local && sudo tar --strip-components 1 -xzf ~/node-v0.12.7-linux-x64.tar.gz

3) Here I checked the versions that are installed:

node --version
npm --version

4) Then I installed the essential libraries:

sudo apt-get update
sudo apt-get install build-essential libssl-dev apache2-utils

5) And finally, I installed Cordova and Ionic Framework:

sudo npm install -g cordova ionic

6) I entered the directory /var/www/html/apps/ and created my application:

ionic start testeProject blank

And it worked!!!

Edited from that point onward for the following reason:
I am adding more useful information.

After creating the application, inside the directory:

/var/www/html/apps/testeProject/

I ran it through the command line at the terminal ionic serve. Which loads the asynchronous execution of your application, while you edit in your IDE, it automatically updates on the screen.

  • Ivan. I did the same processes as you. But when I do this command: ionic emulate ios does not emulate. I use Mac OS Yosemite 10.10.5. And I have recently updated Xcode 7. So when I run this command it says that the Xcode cannot be opened because of the Operating System version. There is another way to emulate ?

  • That is the mistake: Consult the developer to make sure that Simulator works with this version of OS X. You may have to reinstall the application. Be sure to install all available app and OS X updates.

  • Is it okay for me to run on a Mamp server (Xampp) ? It changes something ? My Nodejs version is 4.2.2 and NPM is 2.14.7.

  • This procedure is for linux. for OS-X must be different.

  • It is Linux command too.

  • To emulate, I believe you have to include the Platform no?

  • A user has already helped me. Thank you. I have ionic serve --lab, top.

  • what is this --lab for?

  • It’s like an emulator, rotate it for you to see and choose the option localhost. My application is in the Localhost folder. You will probably have to choose the option that shows your machine’s IP. It opens a web page with two environments - iOS and Android. To see how the app is getting.

Show 4 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.