Window installation Node.js npm appium Appium Desktop


Window installation Node.js npm appium appium Desktop

1. Install nodejs

Reference link:
https://blog.csdn.net/weixin_42064877/article/details/131610918

1) Open the browser and go to the Node.js official website https://nodejs.org/ ↗.
2) On the homepage, you can see the current stable version and the latest version of Node.js. Click "Long-Term Support Release" download to download the current version of the Node.js installer.
3) After the download is completed, open the downloaded file, double-click the installation package, click Next, and then see the place to change the path.
4) Click the change button, change to your designated installation location (I installed it on the D drive), click Next, and finally the installation is successful.
5) In order to verify whether Node.js has been successfully installed, you can enter the following command in the CMD command line tool:
node -v
npm -v to view the version of npm

6) This command will output the version number of Node.js. If the output If the version number is the same as the version number you downloaded, Node.js has been successfully installed.

After the installation is complete, you will have this path: C:\Program Files\nodejs

2.Install npm

Reference link:
https://www.sg-info.cn/article/show/9196

Enter the following command to verify npm installation, if npm is installed correctly you will see their version number
npm -v
If you find npm is not installed correctly you can try to update npm using the following command, this will use npm's own update command to update npm.
npm install -g npm

3.Install Appium Desktop

https://zhuanlan.zhihu.com/p/643091651

Appium Desktop download address:
https://github.com/appium/appium-desktop/releases
Appium Inspector download address:
https://github.com/appium/appium-inspector/releasesAfter
the installation is complete, there is this folder
C:\ Program Files\Appium
C:\Users\jeff.xie\AppData\Roaming\appium-desktop

To set environment variables, you need to set two:
C:\Program Files\Appium
C:\Program Files\Appium\node_module\.bin

After installing Appium Desktop, there will also be this folder:

C:\Program Files\Appium\resources\app\node_modules

This is the same as using the command npm install -g appium to install appium, which will generate the node_modules folder.

4.Install appium

To install the command line version of Appium
on domestic networks, generally use the officially recommended command npm install -g appium directly, but problems such as download failure and timeout may occur. It is recommended that you set up a domestic mirror before downloading.

Set the mirror source
npm config set registry https://registry.npm.taobao.org

Install appium
npm install -g appium. What you download is the latest version of appium.
After the installation is complete, there will be this folder: C:\Users\jeff.xie\AppData\Roaming\npm\node_modules. To
set the environment variables, you need to set two:
C:\Users\jeff.xie\AppData\Roaming\npm\node_modules
C:\Users\jeff.xie\AppData\Roaming\npm\node_modules\.bin

It is recommended to download appium version 1.15 and specify the version number using the command npm install -g [email protected]

This version of appium is a command line version. You can start one with appium desktop. You can also install only one or both. It is recommended to install both.

Install appium-doctor
npm install appium-doctor -g

appium-doctor is used to check whether the environment configuration is complete. After the installation is complete, reopen a new command line window and enter appium-doctor, as shown below:

Environment variable settings

​​​​​​​

Guess you like

Origin blog.csdn.net/qq_30273575/article/details/132759809