FIX for 'ng is not recognized' Error - Angular CLI Installed But Still Not Working

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024
  • I had Angular installed globally but kept seeing errors when trying to use ng command but this fixed it.
    Simply, add the relevant directory path to your ng.cmd file as a new Environment Variable in Path on Windows
    Command I Used was Windows key + R then type %APPDATA%
    You can see the Stack Overflow post here: stackoverflow....
    I am installing Angular CLI with the following:
    npm install -g -f @angular/cli
    (check that this is still current when you are trying to do this as it may change!)
    Testing with
    ng v
    Remember - it's never too late!
    Cheers,
    Steve

ความคิดเห็น • 31

  • @mikeshelpinghand
    @mikeshelpinghand 7 หลายเดือนก่อน +1

    you are awesome!!! I went through so many things trying to figure this out with other videos and nothing was working but this worked so thanks

  • @therealjordiano
    @therealjordiano ปีที่แล้ว +1

    Thanks so much, was having trouble with the install and this fixed it, awesome stuff

    • @latedeveloper7836
      @latedeveloper7836  ปีที่แล้ว

      glad to hear it worked, it was so frustrating for me!

  • @ahaque_
    @ahaque_ 2 หลายเดือนก่อน +1

    Hey, Thank you for saving my day!

  • @ВиталийОвчаренко-и1н
    @ВиталийОвчаренко-и1н 6 หลายเดือนก่อน +2

    To resolve the 'ng is not recognized' error when using Angular CLI, ensure that Angular CLI is installed and added to the PATH environment variable correctly. You can do this by running npm install -g @angular/cli and then setting the PATH to the location where ng.cmd file is located. Additionally, make sure to add the ng path to the Windows advanced settings.

    • @latedeveloper7836
      @latedeveloper7836  5 หลายเดือนก่อน

      that looks like a fair summary, yes

  • @isharamadusanka3415
    @isharamadusanka3415 8 หลายเดือนก่อน +1

    finally.. thank you soo much

  • @AAAA-e5p4l
    @AAAA-e5p4l 5 หลายเดือนก่อน +1

    finally a good one, thanks

  • @mominnaveed5658
    @mominnaveed5658 ปีที่แล้ว +1

    its working thanks

  • @product_of_august
    @product_of_august หลายเดือนก่อน +1

    The restart is crucial

  • @sarahsameh9994
    @sarahsameh9994 6 หลายเดือนก่อน +1

    It worked !Thank You!!!!!!

  • @duurenjargalaltanhundaga4755
    @duurenjargalaltanhundaga4755 3 หลายเดือนก่อน +1

    how if find npm file i don't have npm file pls help Windowd 11

    • @latedeveloper7836
      @latedeveloper7836  3 หลายเดือนก่อน

      do you definitely have npm installed? best to work through that scenario first as it sounds like it might not be there in the first instance

  • @Tropax1
    @Tropax1 ปีที่แล้ว +1

    But my ng.cmd file is missing, any help?

    • @latedeveloper7836
      @latedeveloper7836  ปีที่แล้ว

      did you do a search for it in other directories? did you get it fixed?

    • @latedeveloper7836
      @latedeveloper7836  ปีที่แล้ว

      not a hidden file in Windows is it?

  • @khalidhussien6764
    @khalidhussien6764 10 หลายเดือนก่อน +1

    thanks mate.

  • @saifeddinbensmida265
    @saifeddinbensmida265 ปีที่แล้ว +1

    i still have the same problem even i restart my machine

    • @latedeveloper7836
      @latedeveloper7836  ปีที่แล้ว

      just seeing this now, sorry - did you get it fixed?

  • @luigitedde3261
    @luigitedde3261 11 หลายเดือนก่อน +1

    Thanks

  • @nemo-fx2ki
    @nemo-fx2ki 8 หลายเดือนก่อน +1

    thank u

  • @johnleyrooseveltlorvil6431
    @johnleyrooseveltlorvil6431 11 หลายเดือนก่อน +1

    great