0

I have a problem on Visual Studio Code. I used node.js to create a project with this command ng new [PROJECTNAME] and I opened it on Visual Studio Code. The problem is I try to generate a component in the powershell terminal with this command ng generate component [COMPONENTNAME], but I get constantly the same error. I've updated everything, but it still doesn't work.

R. Richards
  • 23,283
  • 10
  • 63
  • 62
Iysah
  • 1
  • 3

1 Answers1

0

I solved it thanks to R. Richards. I opened cmd as admin typed the next command cd C:\Users\USERNAME\AppData\Roaming\npm\ and then this command del ng.ps1. That should work.

Iysah
  • 1
  • 3