node_modules不被识别为内部或外部命令
node_modules不被识别为内部或外部命令
我正在尝试使用appium、jasmine和perfecto mobile编写一个测试自动化脚本。我使用了从以下URL克隆的项目,并进行了自己的配置Appium Javascript Example。
问题在于当我执行npm test命令时,出现了以下错误:
node_modules不被识别为内部或外部命令
这是packages.json脚本的样子:
{
"name": "perfecto_appium_sample",
"version": "1.0.0",
"description": "以下示例演示了如何安装应用程序并使用WebDriverIO进行自动化测试。它使用了可以从[这里](https://github.com/PerfectoCode/AppsForSamples/tree/master/selendroid-test-app-0.17.0)下载的selendroid测试应用程序。",
"main": "perfectoSpec.js",
"scripts": {
"test": "node_modules/webdriverio/bin/wdio wdio.conf.js",
"start": "wdio wdio.conf.js"
},
"author": "",
"license": "ISC",
"devDependencies": {
"wdio": "^0.3.3",
"wdio-jasmine-framework": "^0.2.19",
"wdio-mocha-framework": "^0.5.12"
},
"dependencies": {
"wd": "^1.5.0",
"webdriverio": "^4.10.2"
},
"keywords": []
}