react-native init运行错误



  • 建立时2个警告

    [3/4] Linking dependencies...
    warning "react-native@0.44.0" has unmet peer dependency "react@16.0.0-alpha.6".

    ██[4/4] Building fresh packages...
    success Saved lockfile.
    success Saved 3 new dependencies.
    ├─ fbjs@0.8.12
    ├─ loose-envify@1.3.1
    └─ react@16.0.0-alpha.6
    Done in 19.88s.
    Adding Jest...

    yarn add v0.24.5
    [1/4] Resolving packages...
    [2/4] Fetching packages...
    warning Pattern ["babel-preset-react-native@1.9.2"] is trying to unpack in the same destination "C:\Users\D\AppData\Local\Yarn\cache\v1\npm-babel-preset-react-native-1.9.2-b22addd2e355ff3b39671b79be807e52dfa145f2" as pattern ["babel-preset-react-native@^1.9.1"]. This could result in a non deterministic behavior, skipping.

    react-native start后

    Scanning 557 folders for symlinks in D:\rn\AwesomeProject\node_modules (36ms)
    ┌────────────────────────────────────────────────────────────────────────────┐
    │ Running packager on port 8081. │
    │ │
    │ Keep this packager running while developing on any JS projects. Feel │
    │ free to close this tab and run your own packager instance if you │
    │ prefer. │
    │ │
    https://github.com/facebook/react-native
    │ │
    └────────────────────────────────────────────────────────────────────────────┘
    Looking for JS files in
    D:\rn\AwesomeProject

    React packager ready.

    Loading dependency graph...jest-haste-map: @providesModule naming collision:
    Duplicate module name: bser
    Paths: D:\rn\AwesomeProject\node_modules\react-native\node_modules\fb-watchman\node_modules\bser\package.json collides with D:\rn\AwesomeProject\node_modules\react-native\node_modules\bser\package.json

    This warning is caused by a @providesModule declaration with the same name across two different files.
    jest-haste-map: @providesModule naming collision:
    Duplicate module name: bser
    Paths: D:\rn\AwesomeProject\node_modules\react-native\node_modules\jest-haste-map\node_modules\bser\package.json collides with D:\rn\AwesomeProject\node_modules\react-native\node_modules\fb-watchman\node_modules\bser\package.json

    This warning is caused by a @providesModule declaration with the same name across two different files.
    jest-haste-map: @providesModule naming collision:
    Duplicate module name: fb-watchman
    Paths: D:\rn\AwesomeProject\node_modules\react-native\node_modules\jest-haste-map\node_modules\sane\node_modules\fb-watchman\package.json collides with D:\rn\AwesomeProject\node_modules\react-native\node_modules\fb-watchman\package.json

    This warning is caused by a @providesModule declaration with the same name across two different files.
    Loading dependency graph, done.
    ^C终止批处理操作吗(Y/N)?


登录后回复