Lift-off 1: Apollo Client setup

I’m trying to install to /client

npm install graphql @apollo/client

But I get error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: catstronauts-client@1.0.0
npm ERR! Found: graphql@14.7.0
npm ERR! node_modules/graphql
npm ERR! peer graphql@“^14.5.0 || ^15.0.0” from @apollo/federation@0.25.0
npm ERR! node_modules/@apollo/federation
npm ERR! @apollo/federation@“0.25.0” from apollo-language-server@1.26.3
npm ERR! node_modules/apollo-language-server
npm ERR! apollo-language-server@“^1.26.3” from apollo@2.33.4
npm ERR! node_modules/apollo
npm ERR! dev apollo@“^2.30.2” from the root project
npm ERR! 1 more (apollo-codegen-core)
npm ERR! peer graphql@“^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0” from @apollographql/graphql-language-service-interface@2.0.2
npm ERR! node_modules/@apollographql/graphql-language-service-interface
npm ERR! @apollographql/graphql-language-service-interface@“^2.0.2” from apollo-language-server@1.26.3
npm ERR! node_modules/apollo-language-server
npm ERR! apollo-language-server@“^1.26.3” from apollo@2.33.4
npm ERR! node_modules/apollo
npm ERR! dev apollo@“^2.30.2” from the root project
npm ERR! 1 more (apollo-codegen-core)
npm ERR! 13 more (@apollographql/graphql-language-service-parser, …)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @apollo/client@“" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: graphql@15.7.2
npm ERR! node_modules/graphql
npm ERR! peer graphql@“^15.7.2 || ^16.0.0” from subscriptions-transport-ws@0.11.0
npm ERR! node_modules/subscriptions-transport-ws
npm ERR! peerOptional subscriptions-transport-ws@“^0.9.0 || ^0.11.0” from @apollo/client@3.4.17
npm ERR! node_modules/@apollo/client
npm ERR! @apollo/client@"
” 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.

I installed it in the following order without any problems.

npm install graphql
npm install @apollo/client

Hi @bk52, glad to hear it installed correctly with the separate commands!