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.
Asked
Active
Viewed 123 times
0
R. Richards
- 23,283
- 10
- 63
- 62
Iysah
- 1
- 3
-
I did work. I have posted the solution beneath. – Iysah Oct 12 '21 at 14:41
1 Answers
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