我已在我的 64 位 Win 10 计算机中安装了最新版本的 Newman (3.10.0)。
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
+ newman@3.10.0
added 195 packages in 57.852s
Run Code Online (Sandbox Code Playgroud)
但是,我无法使用 newman,并且在访问时遇到以下错误。
C:\Users\ABC>newman -h
'newman' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)
我为指向 newman 目录的NODE_PATH添加了一个环境变量C:\Users\ABC\AppData\Roaming\npm\node_modules\newman
但没有运气。有人可以帮忙吗?