【问题标题】:Error when running react native uber clone运行 react native uber clone 时出错
【发布时间】:2023-02-16 14:45:46
【问题描述】:

我是一个完全的初学者,试图在 visual studio (windows) 上打开一个 react native uber clone 应用程序。 https://github.com/coderkhalide/uber-clone

以下是发生的步骤和错误,将不胜感激任何帮助。我确定我犯了一些菜鸟错误。

NPM 版本 8.19.2

  1. 将 github 存储库复制到 VS 中
  2. 删除了 yarn.lock 文件
  3. 在终端 - npm install 中,我立即收到错误:
    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE unable to resolve dependency tree
    npm ERR! 
    npm ERR! While resolving: undefined@undefined
    npm ERR! Found: react-native-safe-area-context@4.2.4
    npm ERR! node_modules/react-native-safe-area-context
    npm ERR!   react-native-safe-area-context@"4.2.4" from the root project
    npm ERR! 
    npm ERR! Could not resolve dependency:
    npm ERR! peer react-native-safe-area-context@"^3.1.9" from react-native-elements@3.4.2
    npm ERR! node_modules/react-native-elements
    npm ERR!   react-native-elements@"^3.4.2" from the root project
    npm ERR! 
    npm ERR! Fix the upstream dependency conflict, or retry
    npm ERR! this command with --force, or --legacy-peer-deps
    npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
    npm ERR! 
    npm ERR! See C:\Users\anon\AppData\Local\npm-cache\eresolve-report.txt for a full report.    
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\anon\AppData\Local\npm-cache\_logs\2022-11-09T23_44_43_850Z-debug-0.log
    
    1. 然后,我输入 npm install --uber-clone --legacy-peer-deps 它加载了一段时间,然后我收到以下错误:
    npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
    npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
    npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
    npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
    npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    npm WARN deprecated tailwind-react-native-classnames@1.5.1: library changed name to 'twrnc', please use that package for the latest features
    npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.      
    npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
    
    added 1285 packages, and audited 1286 packages in 32s
    
    9 vulnerabilities (1 moderate, 6 high, 2 critical)
    
    To address issues that do not require attention, run:
      npm audit fix
    
    To address all issues, run:
      npm audit fix --force
    
    Run `npm audit` for details.
    

    我还下载了 Git Bash。我愿意使用任何程序。老实说,一个完整的菜鸟,需要一步一步的指导 =D。我的主要目标是打开应用程序并能够在应用程序中导航。

【问题讨论】:

    标签: reactjs json react-native github


    【解决方案1】:

    安装npm i twrnc而不是npm i tailwind-react-native-classnames

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-02
      • 2018-05-20
      • 2021-09-13
      • 1970-01-01
      相关资源
      最近更新 更多