0

I imported an existing Angular project built on angular cli@9.0.6. To setup my local for this project I am using Node.js v-14.20.

enter image description here

After importing the project in vs code, I followed below steps:

  1. I set Path in Environment Variables --> User variables for my_user --> C:\Users\my_user\AppData\Roaming\npm

  2. npm install which created node_modules folder in my project But, on checking ng -v I am getting below error: enter image description here But, I can see all the packages in node_modules getting downloaded Next step, I tried

  3. npm install -g @angular/cli@latest still same error

  4. Then I ran in powershell, below command still same error

    set-ExecutionPolicy RemoteSigned -Scope CurrentUser Get-ExecutionPolicy

  5. I checked npm -g list below:

enter image description here

I followed some of the instructions mentioned here: ng : The term 'ng' is not recognized as the name of a cmdlet, function Visual Studio Code Terminal

I am not sure if it is node.js version mismatch with angular getting installed or what? Please help

R. Richards
  • 24,603
  • 10
  • 64
  • 64
likeGreen
  • 1,001
  • 1
  • 20
  • 40

0 Answers0