当前位置: 首页 > 工具软件 > npminstall > 使用案例 >

npm安装Appium报错 Error: Request failed with status code 404,[npminstall:runscript:error] appium-android

李利
2023-12-01

npm安装appium报错:

Error installing Chromedriver: Request failed with status code 404
[16:16:30] Error: Request failed with status code 404

] appium-android-driver@4.43.1 › appium-chromedriver@^4.13.0 scripts.postinstall run "node install-npm.js" error: Error [RunScriptError]:

Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "C:\Windows\system32\cmd.exe /d /s /c node install-npm.js" error, exit code 1

 

解决办法:先删除npm下面的node_modules的东西,

然后执行下面的命令:

npm config set registry https://registry.npm.taobao.org

npm install appium -g --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver

 类似资料: