Skip to content

Setup-your-project - need exact versions to install to avoid errors #42

Open

Description

@asloan7

https://github.com/SimCoderYoutube/InstagramClone/wiki/Setup-your-project

Need to install the exact version of node, npm, and expo that were used to create the project.

Example: saying "npm i -g expo-cli" will never work, there are too many things changing all the time - need to install the version of expo-cli that were used to create the project.

npm i -g expo-cli
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: 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 [email protected]: 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 [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.


Example: saying "npm install expo"

InstagramClone\frontend> npm install expo
npm WARN config global --global, --local are deprecated. Use --location=global instead.
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-community/[email protected]
npm ERR! node_modules/@react-native-community/slider
npm ERR! @react-native-community/slider@"3.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @react-native-community/slider@">=4.0.0" from [email protected]
npm ERR! node_modules/expo-video-player
npm ERR! expo-video-player@"^2.0.1" 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...\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...\AppData\Local\npm-cache_logs\2022-08-11T16_55_37_927Z-debug-0.log

Activity

  1. AbrahamNobleOX commented on Nov 12, 2022

    @AbrahamNobleOX

    Hi, where you able to get this project to work?

  2. asloan7 commented on Nov 14, 2022

    @asloan7
    Author

    I know a little bit more now about JS frameworks, and have installed a bunch more stuff for other projects, and now it works.

    But "npm install expo" in the frontend folder breaks
    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-community/[email protected]
    npm ERR! node_modules/@react-native-community/slider
    npm ERR! @react-native-community/slider@"3.0.3" from the root project
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peer @react-native-community/slider@">=4.0.0" from [email protected]
    npm ERR! node_modules/expo-video-player
    npm ERR! expo-video-player@"^2.0.1" from the root project

  3. Jaykef commented on Jan 8, 2023

    @Jaykef

    I think the exact version can be found in the package.json file: "expo": "~42.0.3",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions