Which version of nodejs to install Cordova Ionic 2.0.0-beta.3

Asked

Viewed 784 times

0

There are many versions of nodejs, I noticed that if I have the latest version of nodejs, I can’t install an earlier version of Ionic, I tried after installing nodejs is enters the terminal as administrator I forced the installation this way (I am using Windows 10 and another machine with 8.1):

command : npm install -g Cordova [email protected]

generates error in Ionic installation. inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • What error is being returned? And what is your operating system?

  • I have adjusted my question in more detail, I am using Windows 10 and another machine with 8.1:

  • You have Python installed on your PC?

1 answer

0

Go on https://nodejs.org/en/ Install the left option(6.9.1) You will basically need NPM to install some dependencies, and Ionic itself.

After installing Node, do:

npm install -g Cordova Ionic

After installing the project, make sure Ionic has been installed successfully by typing the following command into your command prompt:

Ionic

If you want to start an Ionic 2 project, type:

Ionic start --v2 meProject sidemenu (or other template of your choice). If you want Ionic version 1.0, do not type --v2.

For more information, take a look at: https://ionicframework.com/getting-started/

  • I have adjusted my question in more detail, I am using Windows 10 and another machine with 8.1:

  • I just edited my answer, take a look

  • Eai??? It worked?

  • this command "npm install -g Cordova Ionic" will install the latest version, and then if I do this "Ionic start Myionic2project tutorial --v2" will generate the project using Typescript that’s what I don’t want

  • I want a project using normal JS and not Typescript

  • understood, so in case just don’t add the --v2

  • Have you tried using these commands? " Ionic start Myionic2project tutorial --v2" or this "Ionic start Myionic2project " knows how to tell me the difference that will cause?

  • Ionic start app tutorial --v2 will start an Ionic project 2 with a tutorial template, explaining how things work in Ionic 2. Ionic start app will initialize an Ionic project 1, with a default template (I think the default is tabs)and then he’ll create a project with a tabs-based route system.

Show 3 more comments

Browser other questions tagged

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