NPM Package Error- 'newman' is not recognized as an internal or external command

Rakesh133 picture Rakesh133 · Jul 17, 2018 · Viewed 8k times · Source

I have installed the latest version of Newman (3.10.0) in my 64-Bit Win 10 Machine.

C:\Users\ABC>npm install -g newman
C:\Users\ABC\AppData\Roaming\npm\newman -> C:\Users\ABC\AppData\Roaming\npm\node_modules\newman\bin\newman.js
+ [email protected]
added 195 packages in 57.852s

However, I am not able to use the newman and I am getting below error while accessing.

C:\Users\ABC>newman -h
'newman' is not recognized as an internal or external command,
operable program or batch file.

I have added an environment variable for the NODE_PATH pointing to the newman directory C:\Users\ABC\AppData\Roaming\npm\node_modules\newman

but no luck. Could some one please help.

Answer

Rakesh133 picture Rakesh133 · Aug 15, 2018

The issue was fixed after troubleshooting with the Node Application. A previous version of Node (32-bit) was installed in my machine and it was not completely removed after I did an uninstall. When I installed Node 64-Bit both entry was present in the environment variable and caused a conflict.

When I manually deleted both installation folder and the env variable the newman worked correcly.