error when running expo start

When I run expo start I get this error:
I’m on Windows 10

Invalid or unexpected token

SyntaxError: Invalid or unexpected token
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\ana.melo\AppData\Local\Yarn\Data\global\node_modules\@expo\config\src\index.ts:3:1)

I uninstalled expo-cli with yarn global remove expo-cli and installed with npm install -g expo-cli. If some error appears after executing the last command, you can run npm cache clean -f and run it again.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.