通过EXPO-CLI启动React Native Project时遇到错误。我是刚接触原生语言的人

时间:2019-10-09 13:10:07

标签: javascript react-native npm expo

EXPO CLI错误
    PS D:\ Final Year Project \ practice \ rn-test-app> npm start

  

@开始D:\ Final Year Project \ practice \ rn-test-app

> expo start

Starting project at D:\Final Year Project\practice\rn-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:\@expo\xdl@56.2.8\src\Project.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:\Users\ANONYMOUS\AppData\Roaming\npm-cache\_logs\2019-10-08T21_04_22_912Z-debug.log

1 个答案:

答案 0 :(得分:0)

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