I am trying to use Angular-CLI to install a new Angular2 app, but keep running into the following issue:
ng new payment-calc-app
After \"Install
npm install -g @angular/cli --no-optional
payment-calc-app
) NodeJs
command prompt in administrator mode ng new payment-calc-app
I had the same problem and the solution that worked for me is running the IntelliJ as an administrator
In my case the problem was that I had another command prompt with 'ng serve' running, I stopped the process and the creation completed successfully
if you are getting this type of error when you are trying an ng build --prod
close VS Code and in file explorer go to the dist folder (same level as the src folder)... manually delete this
then try again
I had this same issue. I solved it by rolling back to NodeJS LTS. For me, 11.7 Current was the issue. I combed the inter webs and discovered that Current doesn't get tested with NPM all the time, so in a way, Current is how that team tests NodeJS in the wild. Best of luck to anyone having this issue.
I know the OP specified they ran it as an Administrator, but for me that solved the issue. Simply running my build as an administrator worked.