Thanks to https://www.cnblogs.com/yhitest/p/6011210.html and http://www.cnblogs.com/jiyanjiao-702521/p/9981588.html
The steps are divided into five steps
1. Install node.js
Enter the official website of node.js: https://nodejs.org/ to download the installation package
Follow the prompts and click Next or Continue, you can choose the installation path by yourself
2. Verify that node.js is installed successfully
Keyboard win+R key, a pop-up window appears under the computer, enter CMD, then press Enter, a command prompt window appears
Enter the command node -v and press Enter in the window to view the displayed node version number
If the version number is displayed, the installation is complete
3. Install appium using npm
In the command prompt window, continue to enter the command to install appium, the command is as follows:
Global installation:
npm install -g appium
Since the mirror of npm is foreign, many packages cannot be downloaded, you can use cnpm, use the mirror of Taobao to install cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
appium-doctor also needs to be installed
npm install appium-doctor -g
Installed.
4. Configure the environment variables of appium
Add the following variables in the environment variables
PATH=C:\Users\lenovo\AppData\Roaming\npm\node_modules\appium\node_modules\.bin (directory installed by yourself)
5. Verify that appium is installed successfully
Finally, enter in the command prompt window
Appium-doctor
Just verify