Skip to content

Problem : -bash: ng: command not found  #8545

@manikGit

Description

@manikGit

$ node -v
v8.9.1
$ npm -v
5.5.1

OS X EI CAPITAN V10.16
ERROR:
$ ng —version:
-bash: ng: command not found

Log:
$ sudo npm install --unsafe-perm -g angular-cli
Password:
npm WARN deprecated angular-cli@1.0.0-beta.28.3: angular-cli has been renamed to @angular/cli. Please update your dependencies.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/Users/maniksrivastava/.npm-global/bin/ng -> /Users/maniksrivastava/.npm-global/lib/node_modules/angular-cli/bin/ng

fsevents@1.1.3 install /Users/maniksrivastava/.npm-global/lib/node_modules/angular-cli/node_modules/fsevents
node install

[fsevents] Success: "/Users/maniksrivastava/.npm-global/lib/node_modules/angular-cli/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

node-sass@4.7.1 install /Users/maniksrivastava/.npm-global/lib/node_modules/angular-cli/node_modules/node-sass
node scripts/install.js

Cached binary found at /Users/maniksrivastava/.npm/node-sass/4.7.1/darwin-x64-57_binding.node

node-sass@4.7.1 postinstall /Users/maniksrivastava/.npm-global/lib/node_modules/angular-cli/node_modules/node-sass
node scripts/build.js

Binary found at /Users/maniksrivastava/.npm-global/lib/node_modules/angular-cli/node_modules/node-sass/vendor/darwin-x64-57/binding.node
Testing binary
Binary is fine
npm WARN @angular/core@2.4.10 requires a peer of rxjs@^5.0.1 but none is installed. You must install peer dependencies yourself.

  • angular-cli@1.0.0-beta.28.3
    added 900 packages in 62.983s

$ ng --version
-bash: ng: command not found
$ npm install --unsafe-perm -g rxjs@^5.0.1

  • rxjs@5.5.2
    updated 1 package in 5.559s

$ ng --version
-bash: ng: command not found

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