'ionic' is not recognized as an internal o

2020-05-23 13:50发布

I have successfully installed Ionic. In fact, I have ran it many times already and it worked perfectly fine (on my browser using "ionic serve" command).. But when I have not done "Ionic stuffs" for a few days, and tried doing it this morning, the command is now unrecognized. What is wrong with this?

13条回答
我欲成王,谁敢阻挡
2楼-- · 2020-05-23 14:13

answer here

İf "ionic" is installed;

1-Download and upgrade nodejs to latest version. download nodejs

2- run command:

npm uninstall -g ionic

3-Clear these files:

C:\Users\user\AppData\Roaming\npm

C:\Users\user\AppData\Roaming\npm-cache

3-run command:

npm install -g @ionic/cli

İt is done:)

查看更多
登录 后发表回答