Below are the Nodejs and Angular CLI version which are running in my windows 10 machine.
Angular CLI: 8.3.5 Node: 10.16.3 OS: win32 x64 Angular: 8.2.7
I have created jenkins job to build Angular Application in my localhost.
Question is here, When i running jenkins job (Freestyle) based project, using this command "C:\Angular>npm install --save-dev @angular/cli@latest && ng v" first install command is working perfectly without any issue, but when its moving to next command "ng v" its throughout the error as like below:
'ng' is not recognized as an internal or external command, operable program or batch file. Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE
Note: But same cmd "npm install --save-dev @angular/cli@latest && ng v" is working as we expected in powershell.
Can you please some help on this.