Skip to content

ng: command not found on Mac #8343

@gellban

Description

@gellban

if you type:
npm install -g @angular/cli
ng new
you will get the error:
ng: command not found
because you do not have access to the global directory of npm

solution:
just use sudo
sudo npm install -g @angular/cli
ng new

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions