Ionic doesn't work properly

Hey there.I’ve already installed ionic and cordova but ionic simply doesn’t start a project, and does not accuse any error. Someone to help me?

  • 32bits !

What does where.exe ionic return?
What does npm list -g --depth=0 return?

Your problem is probably with npm, something to do with permissions and files. This happens quite often and is almost impossible to successfully debug (at least here in the forum).

One solution: Uninstall your node, install nvm (or nvm-windows if you are on Windows), install a new node (which includes npm) with this, then install ionic and cordova again and try your command again. The problem should be gone.


I did it, but unfortunately nothing changes. Watch below

@Sujan12, Doesn’t it possible to be related in someway with the error up there “prefix -g não é reconhecido como…”? If so, how can I fix this specific problem?

No, you did not properly.

Did you uninstall your old node and npm first?
Which node version did you install with nvm?
What does nvm list return?

I did all steps again
First of all I´d uninstalled node and npm, after that I’ve Installed nvm. And the last thing was install nodejs 8.9.4LTS. Something related to nvm must be on path, because it’s not here.

nvm list returns that.

How exactly did you install node via nvm?
Your npm is still served from AppData/Roaming. You have to clean that up first.

How must I do that (install node via nvm)?
OK, im gonna clean it.

Read the documentation of nvm-windows to learn how to use it.

I guess nvm command to install nodejs just works for 64bits, am I right?

No, this works on all versions normally.