报错
× Installing ‘uiautomator2’ using NPM install spec ‘appium-uiautomator2-driver’
Error: × Encountered an error when installing package: npm command ‘install --save-dev --no-progress --no-audit --omit=peer --save-exact --global-style --no-package-lock appium-uiautomator2-driver --json’ failed with code 1.
其实关键看到了Error: EPERM: operation not permitted,
这里, 意思是’操作不允许’ , 应该是权限问题
用管理员打开cmd执行命令试试
就安装成功了