1.配置npm的全局模塊的存放路徑、cache的路徑時,執行命令npm config set prefix "D:\Program Files\nodejs\node_global"后系統無響應,不是加載的那種狀態,而是下標不停地在哪里閃
解決:C:\Users\{賬戶}\下的.npmrc文件刪除掉,就可以重新使用了
2.cmd中執行newman run Postman-API.postman_collection.json -d data.json -r html時,
執行以上生成html報告的命令時,若出現異常提示:
newman: "html" reporter could not be loaded.
run `npm install newman-reporter-html`
解決:需要執行命令npm install -g newman-reporter-html來全局安裝支持Newman生成html報告的組件然后,
再次執行命令newman run Postman_API_test.postman_collection.json -d data.json -r html
3.jenkins中執行命令報錯
解決:JDK環境變量沒配置正確,重新配置jdk環境變量