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

前端 未结 13 1458
灰色年华
灰色年华 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 08:58

    this worked for me. try adding below to the ~/.bash_profile for mac OSX el capitan users:

    NPM_PACKAGES="${HOME}/.npm-packages"
    
    NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
    
    PATH="$NPM_PACKAGES/bin:$PATH"
    # Unset manpath so we can inherit from /etc/manpath via the `manpath`
    # command
    unset MANPATH # delete if you already modified MANPATH elsewhere in your config
    MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
    

    then run source ~/.bash_profile to reload the profile in terminal.

    additional info: node v4.3.1

提交回复
热议问题