ionic is not recognized as an internal or external command operable program or batch file

前端 未结 4 1163
無奈伤痛
無奈伤痛 2020-12-22 11:23

I have tried to install ionic framework. I was done with my first step by executing the command (installed node.js).

First command: npm install -g cordova ionic

相关标签:
4条回答
  • 2020-12-22 11:43

    İ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:)

    0 讨论(0)
  • 2020-12-22 11:46

    I'm using windows 10 for developing, I solved it by adding the npm global packages folder:

    %USERPROFILE%\AppData\Roaming\npm
    

    to the environment variable Path

    0 讨论(0)
  • 2020-12-22 11:51
    SET PATH=C:\Program Files\Nodejs;%PATH%
    

    Is worked for me on Windows 10 :)

    0 讨论(0)
  • 2020-12-22 12:00

    I assume you are trying to install ionic in windows. I think you could try to install it alone, without cordova, and then try it again.

    npm install -g ionic
    

    Regards

    0 讨论(0)
提交回复
热议问题