【发布时间】:2020-02-04 17:08:14
【问题描述】:
我最近安装了 expo。我已经使用 expo init 创建了一个项目。 创建后,当我运行 npm start 时出现以下错误,请解决我的问题
> @ start C:\Users\ujwal\Desktop\Java\my-new-project
> expo start
Starting project at C:\Users\ujwal\Desktop\Java\my-new-project
Expo DevTools is running at http://localhost:19002
Opening DevTools in the browser... (press shift-d to disable)
error Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class. Run CLI with --verbose flag for more details.
Metro Bundler process exited with code 1
Set EXPO_DEBUG=true in your env to view the stack trace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ujwal\AppData\Roaming\npm-cache\_logs\2019-10-07T11_19_27_567Z-debug.log
【问题讨论】:
-
请分享你的节点,expo版本。
-
“expo”:“^35.0.0”,“expo-cli”:“^2.10.1”,“package”:“^1.0.1”,“react”:“16.8. 3", "react-dom": "16.8.3",
标签: react-native npm expo