blitz-js / legacy-framework

MIT License
3 stars 2 forks source link

Unable to install CLI #531

Closed vedovelli closed 3 years ago

vedovelli commented 3 years ago

What is the problem?

I am trying to install Blitz cli on my MacOSX

Paste all your error logs here:

v15.11.0
 ~/E/blitzEvaluation   *…  npm install -g blitz                                                                                                                    Tue Mar  9 16:23:06 2021
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR!   peer react@"^16.6.0 || ^17" from next@10.0.8
npm ERR!   node_modules/next
npm ERR!     peer next@"*" from blitz@0.31.1
npm ERR!     node_modules/blitz
npm ERR!       blitz@"*" from the root project
npm ERR!     peer next@">=9.0.0" from babel-plugin-superjson-next@0.2.2
npm ERR!     node_modules/blitz/node_modules/babel-plugin-superjson-next
npm ERR!       babel-plugin-superjson-next@"0.2.2" from @blitzjs/babel-preset@0.31.1
npm ERR!       node_modules/blitz/node_modules/@blitzjs/babel-preset
npm ERR!         @blitzjs/babel-preset@"0.31.1" from blitz@0.31.1
npm ERR!         node_modules/blitz
npm ERR!   peer react@"17.0.1" from react-dom@17.0.1
npm ERR!   node_modules/react-dom
npm ERR!     peer react-dom@"^16.6.0 || ^17" from next@10.0.8
npm ERR!     node_modules/next
npm ERR!       peer next@"*" from blitz@0.31.1
npm ERR!       node_modules/blitz
npm ERR!         blitz@"*" from the root project
npm ERR!       1 more (babel-plugin-superjson-next)
npm ERR!     peer react-dom@"*" from @testing-library/react@11.2.5
npm ERR!     node_modules/blitz/node_modules/@testing-library/react
npm ERR!       @testing-library/react@"^11.2.3" from blitz@0.31.1
npm ERR!       node_modules/blitz
npm ERR!         blitz@"*" from the root project
npm ERR!     2 more (@next/react-dev-overlay, next)
npm ERR!   8 more (@blitzjs/core, @testing-library/react, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from react-query@2.5.12
npm ERR! node_modules/blitz/node_modules/@blitzjs/core/node_modules/react-query
npm ERR!   react-query@"2.5.12" from @blitzjs/core@0.31.1
npm ERR!   node_modules/blitz/node_modules/@blitzjs/core
npm ERR!     @blitzjs/core@"0.31.1" from blitz@0.31.1
npm ERR!     node_modules/blitz
npm ERR!       blitz@"*" from the root project
npm ERR!     1 more (@blitzjs/server)
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 /Users/fabiovedovelli/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/fabiovedovelli/.npm/_logs/2021-03-09T16_23_14_927Z-debug.log

Paste all relevant code snippets here:

PASTE_HERE (leave the ``` marks)

What are detailed steps to reproduce this?

1.

Run blitz -v and paste the output here:

PASTE_HERE (leave the ``` marks)
markhughes commented 3 years ago

You have a dependency conflict, do you have React installed globally? We can check this with the following command:

npm list -g --depth 0
flybayer commented 3 years ago

@vedovelli This should be fixed now as I just published a new release. Can you try again?

vedovelli commented 3 years ago

You have a dependency conflict, do you have React installed globally? We can check this with the following command:

npm list -g --depth 0

Hey @markhughes. That's not the case. @flybayer fixed it already but just FYI this is what I have installed globally.

image

vedovelli commented 3 years ago

@vedovelli This should be fixed now as I just published a new release. Can you try again?

@flybayer Thanks for taking care so quickly! It is indeed installed, with a bunch of warnings, but in the end, installed!

 ~  npm install -g blitz                                                                                                                                    2254ms  Wed Mar 10 04:48:30 2021
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react@0.0.0-experimental-3310209d0
npm WARN node_modules/blitz/node_modules/@blitzjs/installer/node_modules/react
npm WARN   react@"0.0.0-experimental-3310209d0" from @blitzjs/installer@0.32.0
npm WARN   node_modules/blitz/node_modules/@blitzjs/installer
npm WARN     @blitzjs/installer@"0.32.0" from blitz@0.32.0
npm WARN     node_modules/blitz
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8.2" from ink-spinner@4.0.1
npm WARN node_modules/blitz/node_modules/@blitzjs/installer/node_modules/ink-spinner
npm WARN   ink-spinner@"4.0.1" from @blitzjs/installer@0.32.0
npm WARN   node_modules/blitz/node_modules/@blitzjs/installer
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react@17.0.1
npm WARN node_modules/blitz/node_modules/react
npm WARN   peer react@"*" from @testing-library/react@11.2.5
npm WARN   node_modules/blitz/node_modules/@testing-library/react
npm WARN     @testing-library/react@"^11.2.3" from blitz@0.32.0
npm WARN     node_modules/blitz
npm WARN   5 more (react-dom, @testing-library/react-hooks, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.0.0" from react-reconciler@0.24.0
npm WARN node_modules/blitz/node_modules/ink/node_modules/react-reconciler
npm WARN   react-reconciler@"^0.24.0" from ink@3.0.8
npm WARN   node_modules/blitz/node_modules/ink
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react@17.0.1
npm WARN node_modules/blitz/node_modules/react
npm WARN   peer react@"*" from @testing-library/react@11.2.5
npm WARN   node_modules/blitz/node_modules/@testing-library/react
npm WARN     @testing-library/react@"^11.2.3" from blitz@0.32.0
npm WARN     node_modules/blitz
npm WARN   5 more (react-dom, @testing-library/react-hooks, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.0.0" from react-reconciler@0.24.0
npm WARN node_modules/blitz/node_modules/ink/node_modules/react-reconciler
npm WARN   react-reconciler@"^0.24.0" from ink@3.0.8
npm WARN   node_modules/blitz/node_modules/ink
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

added 1782 packages, and audited 1783 packages in 58s

124 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

image

vedovelli commented 3 years ago

🚀

Just did a quick evaluation and WOW! Blitz is 🔥!

Thanks a lot!