Мне удалось решить проблему, установив newman в папку C: \ npm вместо любой системной папки. Также до того, как я не сбросил npm Config к настройкам по умолчанию, которые я сделал на этот раз Теперь я могу запустить свои тесты.
Подробные инструкции по установке nodejs, npm и newman на сервере teamcity
Login to TeamCity Server
Download the Nodejs
Install Nodejs (C:\ProgramFiles\nodejs)
Open Command prompt as run as Administrator
type node -v (should return node version)
type npm - v (should return npm version)
type npm prefix -g (usually it defaults to user folder and returns
C:\Users\user1\AppData\Roaming\npm )
Note the current global prefix
Set the global prefix to by running this on cmd: npm config set prefix C:\npm
Install the needed packages by running this on cmd: npm install -g newman
Restore the prefix to the previous value by running this on cmd: npm config set prefix C:\Users\user1\AppData\Roaming\npm
Open System Environment variables
Edit environment variables and make sure this added to Path: C:\npm
Also additionally you can check under user variables for user1 Path
is set to for npm: C:\Users\user1\AppData\Roaming\npm
Now restart the windows server machine
After that, from the Teamcity web interface, restart the teamcity
server
You should have running newman on your teamcity server on cmd prompt as well as build steps