Cannot run ionic. receives “No command 'ionic' found”

前端 未结 13 1396
灰色年华
灰色年华 2020-12-14 08:11

I want to start using the ionic framework, but unfortunately I\'m already failing on the first step.

I am running Ubuntu 13.04 and I have node v0.10.25 installed. I\

13条回答
  •  -上瘾入骨i
    2020-12-14 08:52

    First Solution

    I recently ran into this issue and the only solution that worked for me was to uninstall both ionic and cordova.

    npm uninstall -g cordova
    npm uninstall -g ionic
    

    Then just reinstall

    npm install -g cordova
    npm install -g ionic 
    

    Second Solution

    I ran into this issue again! This time check your environmental variables.

    Run npm bin -g and check if the path returned is in your environmental variables. For me, it prompted that it was not found in the terminal output. I added that path to the environmental variables and restarted the terminal. From there everything started to work again. (source)

提交回复
热议问题