how do I use angular cli on a Windows Server in a Jenkins build batch command : <p>before installing Jenkins I ran this:
<strong>npm install -g @angular/cli</strong></p>

<p>but I also have this in devDependencies in the package.json for the project: </p>

<p><strong>"@angular/cli": "1.0.0-beta.32.3"</strong>,</p>

<hr>

<p>when running a Jenkins build, I get this message in the log:</p>

<p><em>'ng' is not recognized as an internal or external command, operable program or batch file.</em></p>

<p>=======================================</p>

<p>Here is the Windows batch command in Jenkins:</p>

<p><strong>cmd /c call npm install</strong> </p>

<p><strong>set Path=%WORKSPACE%\node_modules\@angular\cli\bin;%PATH%</strong></p>

<p><strong>echo %PATH%</strong></p>

<p><strong>ng build -prod</strong></p>

<p>========================================</p>

<p>here is a little more log output from Jenkins:</p>

<p>C:\Program Files (x86)\Jenkins\workspace\UiUnitTests><strong>ng build -prod</strong> </p>

<p><em>'ng' is not recognized as an internal or external command,
operable program or batch file.</em></p>

<p>C:\Program Files (x86)\Jenkins\workspace\UiUnitTests>exit 9009 
Build step 'Execute Windows batch command' marked build as failure</p>

<hr>

<p>but when I run this just from the command line (not in a Jenkins job), this works fine:</p>

<p>C:\Program Files (x86)\Jenkins\workspace\UiUnitTests><strong>ng build -prod</strong></p>

<h3>Your global Angular CLI version (1.0.0-rc.1) is greater than your local</h3>

<h3>version (1.0.0-beta.32.3). The local Angular CLI version is used.</h3>

<p>To disable this warning use "ng set --global warnings.versionMismatch=false".
Hash: 7853ecb5a81a25eadbeb
Time: 61317ms
chunk    {0} polyfills.7aaf5284cd5921eea40b.bundle.js (polyfills) 278 kB {4} [initial] [rendered]
chunk    {1} main.3380f71d3e71966aea27.bundle.js (main) 371 kB {3} [initial] [rendered]
chunk    {2} styles.9db1bafdfc989b37db97.bundle.css (styles) 69 bytes {4} [initial] [rendered]
chunk    {3} vendor.24574fc8320129058fac.bundle.js (vendor) 2.18 MB [initial] [rendered]
chunk    {4} inline.d1f5b52100bed2568d44.bundle.js (inline) 0 bytes [entry] [rendered]</p>

<p>C:\Program Files (x86)\Jenkins\workspace\UiUnitTests></p>

<p>================================================</p>

<p>last but not least, here is the Jenkins log output from  <strong>echo %PATH%</strong></p>

<p>C:\Program Files (x86)\Jenkins\workspace\UiUnitTests>echo C:\Program Files (x86)\Jenkins\workspace\UiUnitTests\node_modules\@angular\cli\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\Ruby23-x64\bin;C:\Program Files\nodejs\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps 
C:\Program Files (x86)\Jenkins\workspace\UiUnitTests\node_modules\@angular\cli\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\Ruby23-x64\bin;C:\Program Files\nodejs\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps</p>
