简体   繁体   中英

npx create-react-app results in unexpected token '.'

I am trying to use ' npx create-react-app my_demo_project ' but it results in an error specifying "Unexpected token" .

在此处输入图像描述

Attempted Solution

Attempted to resolve the issue by following one of the suggested solution in Unexpected token '.' when run create-react-app however there was no issue with my debuglog.js file 在此处输入图像描述

Resolved this issue by following the following steps

  1. Update nvm version to v1.1.10 ( https://github.com/coreybutler/nvm-windows/releases )
  2. npm uninstall 18.12.1
  3. npm install 18.12.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM