Skip to content

ng command no found #1881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hmuschett opened this issue Aug 29, 2016 · 11 comments
Closed

ng command no found #1881

hmuschett opened this issue Aug 29, 2016 · 11 comments

Comments

@hmuschett
Copy link

Please provide us with the following information:

  1. OS? Windows 7, 8
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    node -6.2.1

Installed angular-cli globally using (npm install -g angular-cli) but when I'm trying to create project using ng new my-project it is throwing error (ng: command not found) and try --help and some say


Thanks! We'll be in touch soon.

@alexverdaguer
Copy link

Same here

@catull
Copy link
Contributor

catull commented Aug 30, 2016

Freshly installed globally, ng --version gives me

➜  npm install -g angular-cli

[ ... ]
/usr/local/bin/ng -> /usr/local/lib/node_modules/angular-cli/bin/ng
[ ... ]

➜  ng --version

angular-cli: 1.0.0-beta.10
node: 6.4.0
os: darwin x64

@hmuschett
Copy link
Author

hi @catull how to chenge de path in windows??

@catull
Copy link
Contributor

catull commented Aug 30, 2016

You do not change anything, the line above ist just to show that npm install creates a symbolic link. I am afraid I cannot advise you with a Windows installation of nodeJS and npm.

@hmuschett
Copy link
Author

ng --sersion nir ng --help nither work for me and at /usr/local/lib/node_modules i have all pakages of angular-cli i do not know work the CLI

@clifntx
Copy link

clifntx commented Aug 31, 2016

Installing node 6.5 resolved this for me.

@hmuschett
Copy link
Author

@SeekingMonkey i install node 6.5 nothing and nothing remains the same errror not ng command not found

@filipesilva
Copy link
Contributor

This seems to be roughly the same issue as #1930. Basically, the solution is to uninstall node and reinstall 6.5.

It seems due to a node/npm problem.

@invious
Copy link

invious commented Dec 16, 2016

I am on Mac OSX Sierra and I installed Node using the installer on the site because I thought that brew was giving me the issues -- turns out ng isn't installing with either method.

Aymons-MacBook-Air:MyProjects aymon$ npm list -g --depth=0
/Users/aymon/.npm-packages/lib
├── [email protected]
├── [email protected]
└── [email protected]

Aymons-MacBook-Air:MyProjects aymon$ npm -v
3.10.9
Aymons-MacBook-Air:MyProjects aymon$ node --version
v6.9.2
Aymons-MacBook-Air:MyProjects aymon$ ng
-bash: ng: command not found
Aymons-MacBook-Air:MyProjects aymon$ /usr/local/bin/ng
-bash: /usr/local/bin/ng: No such file or directory

@moussazy
Copy link

I solved it using ===> export PATH="$PATH:$HOME/npm/bin"

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants