angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng error

Open dhanabalu opened this issue 9 years ago • 5 comments

There is an error in ng... I tried npm cache clean uninstall and installed again but there is no use and also i changed the path C:\Users\admin\AppData\Local\atom\bin;C:\Users\admin\AppData\Roaming\npm;C:\ProgramData\admin\atom\bin and also C:\Users\admin\AppData\Roaming\npm\node_modules@angular\cli\bin\ng..

npm install -g @angular/cli npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\webpack\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

ng -v 'ng' is not recognized as an internal or external command, operable program or batch file.

node -v v6.10.1

npm -v 3.10.10

There is no use in this changes..Iam using windows 7..Help me to solve these issues

dhanabalu avatar Jul 04 '17 09:07 dhanabalu

`

image

dhanabalu avatar Jul 04 '17 10:07 dhanabalu

Plzz help me to find and solve problem...

dhanabalu avatar Jul 05 '17 05:07 dhanabalu

try uninstall cli(local and global), and npm install -g @angular/cli@latest

ghost avatar Jul 07 '17 11:07 ghost

Your system says that ng is not recognized because it doesn't know where to find global packages installed by npm. This isn't specific to Angular CLI and a common enough node/npm problem.

Here is a helpful response in stack overflow https://stackoverflow.com/a/27864253/2116927

filipesilva avatar Jul 28 '17 09:07 filipesilva

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.