ng command no found
Please provide us with the following information:
- OS? Windows 7, 8
- Versions. Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand 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.
Same here
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
hi @catull how to chenge de path in windows??
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.
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
Installing node 6.5 resolved this for me.
@SeekingMonkey i install node 6.5 nothing and nothing remains the same errror not ng command not found
This seems to be roughly the same issue as https://github.com/angular/angular-cli/issues/1930. Basically, the solution is to uninstall node and reinstall 6.5.
It seems due to a node/npm problem.
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
I solved it using ===> export PATH="$PATH:$HOME/npm/bin"
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.