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

前端 未结 13 1433
灰色年华
灰色年华 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条回答
  •  悲&欢浪女
    2020-12-14 09:00

    for some of you, the two answer above might not work. here's a more general solution for situation where you see "XX" command not found

    first check your npm root and npm root -g the result for the npm root -g should be something like "/usr/local". if it's not, then you found your problem.

    change it by:

    npm config set prefix /usr/local
    

    then npm root -g should give you something like /usr/local/lib/node_modules . Then go ahead re-install everything with -g you will be good to go!

提交回复
热议问题