ng - No such file or directory

See original GitHub issue
- [ X ] bug report

Versions.

Output from: ng --version: No such file or directory Output from: node --version: v7.10.0 Output from: npm --version: 4.2.0

macOS Sierra 10.12.4

Repro steps.

After running ng new app on a fresh install of Node.js and npm I am getting the error message: -bash: /Users/Liz/.npm-packages/lib/node_modules/@angular/cli/bin/ng: No such file or directory. How can I fix this error?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

16reactions
moshepecommented, Nov 21, 2018

alias ng=“/usr/local/lib/node_modules/@angular/cli/bin/ng”

2reactions
rahul6612commented, Jan 2, 2019

Try this

  1. npm remove -g angular-cli
  2. npm cache clean
  3. npm install -g @angular/cli
Read more comments on GitHub >

github_iconTop Results From Across the Web

bash /usr/bin/ng: No such file or directory in Angular
bash /usr/bin/ng: No such file or directory in Angular ; To use this command, you must run your command line utility as root...
Read more >
Ways to fix “-bash: ng: command not found” - Medium
1 . Linking angular/cli with npm · 2. Setting the location of npm folder · 3. Clearing cache and Re-installing Angular (least recommended)...
Read more >
angular/angular-cli - Gitter
hi, npm install -g angular-cli returns an error ENOENT: no such file or directory so program doesn't creates dir to install if it's...
Read more >
ng: command not found (Angular) error [Solved] | bobbyhadz
To solve the error "ng: command not found", install the angular cli package globally by running npm install -g @angular/cli@latest and restart your...
Read more >
bash: /usr/bin/ng: No such file or directory - Code Grepper
bash: /usr/bin/ng: no such file or directory. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On December 7, 2020...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found