我在通过 EXPO-CLI 启动 React Native 项目时遇到错误.我是本地人反应的新手



EXPO CLI ERROR
PS D:\LAST YEAR PROJECT\PRACTICE\RN-TEST-APP> NPM START

@ 开始 D:\最后一年项目\实践\rn-测试-应用程序

> expo start
Starting project at D:Final Year Projectpracticern-test-app
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
Error: Metro Bundler process exited with code 1
at ChildProcess.<anonymous> (C:@expoxdl@56.2.8srcProject.ts:1804:16)
at Object.onceWrapper (events.js:300:26)
at ChildProcess.emit (events.js:210:5)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)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:UsersANONYMOUSAppDataRoamingnpm-cache_logs2019-10-08T21_04_22_912Z-debug.log

如果您使用的是Mac,将Xcode更新到最新版本就可以了。请尝试一下,然后初始化一个新项目。

最新更新