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

前端 未结 13 1409
灰色年华
灰色年华 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条回答
  •  Happy的楠姐
    2020-12-14 09:04

    For Mac users

    1. install the ionic

    npm i -g @ionic/cli
    

    2. check npm path

    npm root -g
    

    3. copy full path of ionic

    Ex. /usr/local/Cellar/node/15.2.1/lib/node_modules/@ionic/cli/bin

    4. open this file as administrator "/etc/paths" with nano or whatever editor

    Ex. sudo nano /etc/paths

    5. Add ionic bin file full path to file ends. And save file.

    That's it.

提交回复
热议问题