I wanted to update Angular, following the steps on this page:
How to upgrade Angular CLI to the latest version More precise this:
npm uninstall -g angular-cli
npm install -g @angular/cli@latest
But after doing that it doesn't recognize the ng variable in Cygwin , it recognizes it in the Windows own terminal and the Visual Studio Code terminal .
In Cywgin, after running:
ng v
I get the following:
C:\Users\admin\AppData\Roaming\npm/node_modules/node/bin/node: línea 1: This: no se encontró la orden
In that location, C:\Users\admin\AppData\Roaming\npm\node_modules\node\bin , there are two files: Name: node File type: file
Name: node.exe File Type: application
And I clarify that Angular was updated.
What I tried so far was the following:
I thought the problem was in the environment variables. Just in case, I added the following line:
C:\Users\admin\AppData\Roaming\npm\node_modules@angular\cli
But it still doesn't work. I assume those environment variables are for the windows terminal.