Appium+python Automation 54-appium-doctor Error has been resolved (syntaxerror:unexpected token ... )

Source: Internet
Author: User
Tags appium

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 ... )

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.