Environment Sweeps Configuration - Commands Not Working - Ionic

Asked

Viewed 639 times

-1

You are showing the following error:

'Ionic' is not recognized as an internal command or external, a operable program or a batch file.

But this command appears only in Cmder, at the Node.js prompt I installed works "normal". Creating an application with Ionic 3 does not update the page during development, for example when saving. Could it be another problem or is it really the environment variable? Follow my environment variable setting. inserir a descrição da imagem aqui

1 answer

2


Updating the page after changing a file (livereload) is not about the environment variables. Environment variables are "shortcuts" for you to access certain commands.

In the case of command ionic, you do not need to configure it in Windows environment variables, just install Ionic globally that the commands will already be available to use.

On the Windows terminal, run the following commands:

  1. npm install -g ionic (installs Ionic globally)

  2. ionic start nomeDoProjeto tabs (creates an Ionic project)

  3. cd nomeDoProjeto (accesses the project folder)

  4. ionic serve(opens a web page with the project running)

Any changes you make to project files should already automatically reload the page with these changes.

Reference: Free Mobile App Development: Getting Started with Ionic Apps

Browser other questions tagged

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