Help with installing the Ionic Framework for Mobile Development

2

To install the nodejs , I followed the example given through the website below, in the error note below, it says that the version I'm using is: 0.13.0-pre

link

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

link

At the end of the installation attempt, I'm getting the following error message, does anyone know 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"}
    
asked by anonymous 04.09.2015 / 20:49

1 answer

5

Like me, there must be other people who have suffered from it, so I will leave the answer that solved my problem:

1) Downloaded the installation package:

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

2) Then I went to 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 the Ionic Framework:

sudo npm install -g cordova ionic

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

ionic start testeProject blank

And it worked !!!

  

Edited from this point forward for the following reason:
I am adding more useful information.

After creating the application, within the directory:

/var/www/html/apps/testeProject/

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

    
04.09.2015 / 21:50