Tive o problema do comando ng, fiz as alterações que foram indicadas e aparece esse novo erro quando executo o comando "npm install"
C:\Users\andre>npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\andre/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\andre\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\andre\AppData\Local\npm-cache\_logs\2022-06-11T16_05_49_143Z-debug-0.log