Objective
Because the new version of the Appium Desktop Edition is not with Appium-doctor this package, so want to use appium-desktop check the environment, need additional installation, in the installation of the small series and encountered a pit
Error message: syntaxerror:unexpected token ...
Encountering a problem environment:
1.windows 10
2.nodejs v4.4.7
Problem solving Scenario: upgrading Nodejs v10.2.0
Encounter problems
1. Because the new version of Appium Appium Desktop is not found in this directory: \appium\node_modules.bin, the new edition without Appium-doctor features, so with NPM installed Appium-doctor
2. However, an error occurred after inputting Appium-doctor: syntaxerror:unexpected token ...
Download the latest version of Nodejs
1. The main reason for the error is the NODEJS version is too low, first to download the latest version of Nodejs, official website, click here
2. When installing the note tick, add to the environment variable path, so that you do not have to configure the environment variables
3. After installation, enter NODE-V to view the version number
Node-v
NPM installation Appium-doctor
1.NPM is a management tool for installing third-party packages inside Nodejs, similar to the PIP in Python, where the installation method is similar to the PIP syntax.
2. Installing Appium-doctor,-g with NPM represents a global installation
3. Enter Appium-doctor to check the environment.
Appium+python Automation 54-appium-doctor Error has been resolved (syntaxerror:unexpected token ... )