Skip to content

-bash: ionic: command not found #4201

@BernardA

Description

@BernardA

Bug Report

Ionic version:

[x] 4.x

Current behavior:

Just heard you support React and attempted the installation to start learning.
So all I did was: npm install -g ionic@latest
It did install with a warning as below:

 npm WARN deprecated superagent@4.1.0: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header).  This notice will go away with v5.0.2+ once it is released.
  /usr/local/Cellar/node/11.7.0/bin/ionic -> /usr/local/Cellar/node/11.7.0/lib/node_modules/ionic/bin/ionic
+ ionic@5.4.5
 added 235 packages from 145 contributors in 27.975s

But then when I run:

ionic start my-app

It returns: -bash: ionic: command not found
Expected behavior:

Well, it should create the app in the designated directory.
Steps to reproduce:

Related code:

Other information:

Ionic info:

Node version : v10.16.3
npm version: 6.9.0
unable to run any ionic command

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions