I’m trying the latest Appium 2.0 and I get this error when trying to install individual drivers. Anyone know what the problem is?
✖ Installing 'xcuitest' using NPM install spec 'appium-xcuitest-driver'
Error: Encountered an error when installing package: The package was not downloaded correctly; its package.json did not exist or was unreadable. We looked for it at /Users/<username>/.appium/appium-xcuitest-driver/node_modules/appium-xcuitest-driver/package.json
❯ appium driver install xcuitest
Attempting to find and install driver ‘xcuitest’
Installing ‘xcuitest’ using NPM install spec ‘appium-xcuitest-driver’
Error: Encountered an error when installing package: The package was not downloaded correctly; its package.json did not exist or was unreadable. We looked for it at ~/.appium/appium-xcuitest-driver/node_modules/appium-xcuitest-driver/package.json
❯ appium driver install uiautomator2
Attempting to find and install driver ‘uiautomator2’
Installing ‘uiautomator2’ using NPM install spec ‘appium-uiautomator2-driver’
Error: Encountered an error when installing package: Command ‘npm install --no-save --no-package-lock appium-uiautomator2-driver -json’ exited with code 1
@jlipps Thanks a lot it worked. @Jordi:
Make sure you don’t have any package.json and no node_modules folder in Home directory. and try installing it again with appium driver install command. it should work.