"Voyage I Lab: Updating to Federation 2": blocked by npm error

When following Voyage I Lab: Updating to Federation 2, we are blocked by the following issues:

$ npm install

> odyssey-voyage-i-lab@1.0.0 postinstall
> npm run install-all


> odyssey-voyage-i-lab@1.0.0 install-all
> node utils/install.js

[reviews] npm ERR! code ERESOLVE
[locations] npm ERR! code ERESOLVE
[reviews] npm ERR! ERESOLVE could not resolve
[reviews] npm ERR! 
[locations] npm ERR! ERESOLVE could not resolve
[locations] npm ERR! 
[locations] npm ERR! While resolving: @apollo/subgraph@0.1.2
[locations] npm ERR! Found: graphql@16.3.0
[locations] npm ERR! node_modules/graphql
[locations] npm ERR!   graphql@"^16.0.0" from the root project
[locations] npm ERR!   peer graphql@"^14.2.1 || ^15.0.0 || ^16.0.0" from @apollographql/apollo-tools@0.5.3
[locations] npm ERR!   node_modules/@apollographql/apollo-tools
[locations] npm ERR!     @apollographql/apollo-tools@"^0.5.3" from apollo-server-core@3.6.7
npm ERR!     node_modules/apollo-server/node_modules/apollo-server-core
[locations] npm ERR!       apollo-server-core@"^3.4.0" from apollo-server@3.4.0
[locations] npm ERR!       node_modules/apollo-server
[locations] npm ERR!         apollo-server@"^3.4.0" from the root project
[locations] npm ERR!       1 more (apollo-server-express)
[locations] npm ERR!   10 more (@graphql-tools/merge, @graphql-tools/mock, ...)
[locations] npm ERR! 
[locations] npm ERR! Could not resolve dependency:
[locations] npm ERR! peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[locations] npm ERR! node_modules/@apollo/subgraph
[locations] npm ERR!   @apollo/subgraph@"^0.1.2" from the root project
[locations] npm ERR! 
[locations] npm ERR! Conflicting peer dependency: graphql@15.8.0
[locations] npm ERR! node_modules/graphql
npm ERR!   peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[locations] npm ERR!   node_modules/@apollo/subgraph
[locations] npm ERR!     @apollo/subgraph@"^0.1.2" from the root project
[locations] npm ERR! 
[locations] npm ERR! Fix the upstream dependency conflict, or retry
[locations] npm ERR! this command with --force, or --legacy-peer-deps
[locations] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[locations] npm ERR! 
[locations] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[reviews] npm ERR! While resolving: @apollo/subgraph@0.1.2
[reviews] npm ERR! Found: graphql@16.3.0
[reviews] npm ERR! node_modules/graphql
[reviews] npm ERR!   graphql@"^16.0.0" from the root project
[reviews] npm ERR!   peer graphql@"^14.2.1 || ^15.0.0 || ^16.0.0" from @apollographql/apollo-tools@0.5.3
[reviews] npm ERR!   node_modules/@apollographql/apollo-tools
[reviews] npm ERR!     @apollographql/apollo-tools@"^0.5.3" from apollo-server-core@3.6.7
[reviews] npm ERR!     node_modules/apollo-server/node_modules/apollo-server-core
[reviews] npm ERR!       apollo-server-core@"^3.4.0" from apollo-server@3.4.0
[reviews] npm ERR!       node_modules/apollo-server
[reviews] npm ERR!         apollo-server@"^3.4.0" from the root project
[reviews] npm ERR!       1 more (apollo-server-express)
[reviews] npm ERR!   10 more (@graphql-tools/merge, @graphql-tools/mock, ...)
[reviews] npm ERR! 
[reviews] npm ERR! Could not resolve dependency:
[reviews] npm ERR! peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[reviews] npm ERR! node_modules/@apollo/subgraph
[reviews] npm ERR!   @apollo/subgraph@"^0.1.2" from the root project
[reviews] npm ERR! 
[reviews] npm ERR! Conflicting peer dependency: graphql@15.8.0
[reviews] npm ERR! node_modules/graphql
[reviews] npm ERR!   peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[reviews] npm ERR!   node_modules/@apollo/subgraph
[reviews] npm ERR!     @apollo/subgraph@"^0.1.2" from the root project
[reviews] npm ERR! 
[reviews] npm ERR! Fix the upstream dependency conflict, or retry
[reviews] npm ERR! this command with --force, or --legacy-peer-deps
[reviews] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[reviews] npm ERR! 
[reviews] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[locations] 
[locations] npm ERR! A complete log of this run can be found in:
[locations] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_27_784Z-debug-0.log
[reviews] 
[reviews] npm ERR! A complete log of this run can be found in:
[reviews] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_27_819Z-debug-0.log
[locations] npm install exited with code 1
[reviews] npm install exited with code 1
[locations] npm install restarted
[reviews] npm install restarted
[gateway] npm ERR! code ERESOLVE
[gateway] npm ERR! ERESOLVE could not resolve
npm ERR! 
[gateway] npm ERR! While resolving: @apollo/gateway@0.42.3
npm ERR! Found: graphql@16.3.0
[gateway] npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
[gateway] npm ERR!   peer graphql@"^15.3.0 || ^16.0.0" from apollo-server-errors@3.3.1
[gateway] npm ERR!   node_modules/@apollo/gateway/node_modules/apollo-server-errors
[gateway] npm ERR!     apollo-server-errors@"^2.5.0 || ^3.0.0" from @apollo/gateway@0.42.3
[gateway] npm ERR!     node_modules/@apollo/gateway
[gateway] npm ERR!       @apollo/gateway@"^0.42.3" from the root project
[gateway] npm ERR!   12 more (apollo-server-types, @graphql-tools/merge, ...)
[gateway] npm ERR! 
[gateway] npm ERR! Could not resolve dependency:
[gateway] npm ERR! peer graphql@"^15.5.3" from @apollo/gateway@0.42.3
[gateway] npm ERR! node_modules/@apollo/gateway
[gateway] npm ERR!   @apollo/gateway@"^0.42.3" from the root project
npm ERR! 
[gateway] npm ERR! Conflicting peer dependency: graphql@15.8.0
[gateway] npm ERR! node_modules/graphql
[gateway] npm ERR!   peer graphql@"^15.5.3" from @apollo/gateway@0.42.3
[gateway] npm ERR!   node_modules/@apollo/gateway
[gateway] npm ERR!     @apollo/gateway@"^0.42.3" from the root project
[gateway] npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
[gateway] npm ERR! this command with --force, or --legacy-peer-deps
[gateway] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[gateway] npm ERR! 
[gateway] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[gateway] 
[gateway] npm ERR! A complete log of this run can be found in:
[gateway] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_27_784Z-debug-0.log
[gateway] npm install exited with code 1
[gateway] npm install restarted
[activities] npm WARN ERESOLVE overriding peer dependency
[activities] npm WARN While resolving: activities@1.0.0
[activities] npm WARN Found: graphql@15.8.0
[activities] npm WARN node_modules/graphql
[activities] npm WARN   graphql@"^16.0.0" from the root project
[activities] npm WARN   15 more (@apollo/subgraph, apollo-graphql, apollo-server, ...)
[activities] npm WARN 
[activities] npm WARN Could not resolve dependency:
[activities] npm WARN peer graphql@"^15.5.3" from @apollo/subgraph@0.1.5
[activities] npm WARN node_modules/@apollo/subgraph
[activities] npm WARN   @apollo/subgraph@"^0.1.2" from the root project
[activities] npm WARN ERESOLVE overriding peer dependency
[locations] npm ERR! code ERESOLVE
[locations] npm ERR! ERESOLVE could not resolve
[locations] npm ERR! 
[locations] npm ERR! While resolving: @apollo/subgraph@0.1.2
[locations] npm ERR! Found: graphql@16.3.0
[locations] npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
[locations] npm ERR!   peer graphql@"^14.2.1 || ^15.0.0 || ^16.0.0" from @apollographql/apollo-tools@0.5.3
[locations] npm ERR!   node_modules/@apollographql/apollo-tools
npm ERR!     @apollographql/apollo-tools@"^0.5.3" from apollo-server-core@3.6.7
[locations] npm ERR!     node_modules/apollo-server/node_modules/apollo-server-core
npm ERR!       apollo-server-core@"^3.4.0" from apollo-server@3.4.0
[locations] npm ERR!       node_modules/apollo-server
[locations] npm ERR!         apollo-server@"^3.4.0" from the root project
[locations] npm ERR!       1 more (apollo-server-express)
[locations] npm ERR!   10 more (@graphql-tools/merge, @graphql-tools/mock, ...)
[locations] npm ERR! 
npm ERR! Could not resolve dependency:
[locations] npm ERR! peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[locations] npm ERR! node_modules/@apollo/subgraph
[locations] npm ERR!   @apollo/subgraph@"^0.1.2" from the root project
[locations] npm ERR! 
[locations] npm ERR! Conflicting peer dependency: graphql@15.8.0
npm ERR! node_modules/graphql
[locations] npm ERR!   peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[locations] npm ERR!   node_modules/@apollo/subgraph
[locations] npm ERR!     @apollo/subgraph@"^0.1.2" from the root project
[locations] npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
[locations] npm ERR! this command with --force, or --legacy-peer-deps
[locations] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[locations] npm ERR! 
[locations] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[locations] 
[locations] npm ERR! A complete log of this run can be found in:
[locations] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_29_100Z-debug-0.log
[locations] npm install exited with code 1
[locations] npm install restarted
[reviews] npm ERR! code ERESOLVE
[reviews] npm ERR! ERESOLVE could not resolve
[reviews] npm ERR! 
[reviews] npm ERR! While resolving: @apollo/subgraph@0.1.2
[reviews] npm ERR! Found: graphql@16.3.0
npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
npm ERR!   peer graphql@"^14.2.1 || ^15.0.0 || ^16.0.0" from @apollographql/apollo-tools@0.5.3
[reviews] npm ERR!   node_modules/@apollographql/apollo-tools
[reviews] npm ERR!     @apollographql/apollo-tools@"^0.5.3" from apollo-server-core@3.6.7
npm ERR!     node_modules/apollo-server/node_modules/apollo-server-core
[reviews] npm ERR!       apollo-server-core@"^3.4.0" from apollo-server@3.4.0
[reviews] npm ERR!       node_modules/apollo-server
[reviews] npm ERR!         apollo-server@"^3.4.0" from the root project
[reviews] npm ERR!       1 more (apollo-server-express)
[reviews] npm ERR!   10 more (@graphql-tools/merge, @graphql-tools/mock, ...)
[reviews] npm ERR! 
[reviews] npm ERR! Could not resolve dependency:
[reviews] npm ERR! peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[reviews] npm ERR! node_modules/@apollo/subgraph
npm ERR!   @apollo/subgraph@"^0.1.2" from the root project
[reviews] npm ERR! 
[reviews] npm ERR! Conflicting peer dependency: graphql@15.8.0
[reviews] npm ERR! node_modules/graphql
[reviews] npm ERR!   peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[reviews] npm ERR!   node_modules/@apollo/subgraph
[reviews] npm ERR!     @apollo/subgraph@"^0.1.2" from the root project
[reviews] npm ERR! 
[reviews] npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
[reviews] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[reviews] npm ERR! 
[reviews] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[reviews] 
[reviews] npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_29_111Z-debug-0.log
[reviews] npm install exited with code 1
[reviews] npm install restarted
[gateway] npm ERR! code ERESOLVE
[gateway] npm ERR! ERESOLVE could not resolve
npm ERR! 
[gateway] npm ERR! While resolving: @apollo/gateway@0.42.3
[gateway] npm ERR! Found: graphql@16.3.0
[gateway] npm ERR! node_modules/graphql
[gateway] npm ERR!   graphql@"^16.0.0" from the root project
[gateway] npm ERR!   peer graphql@"^15.3.0 || ^16.0.0" from apollo-server-errors@3.3.1
[gateway] npm ERR!   node_modules/@apollo/gateway/node_modules/apollo-server-errors
[gateway] npm ERR!     apollo-server-errors@"^2.5.0 || ^3.0.0" from @apollo/gateway@0.42.3
[gateway] npm ERR!     node_modules/@apollo/gateway
[gateway] npm ERR!       @apollo/gateway@"^0.42.3" from the root project
[gateway] npm ERR!   12 more (apollo-server-types, @graphql-tools/merge, ...)
npm ERR! 
[gateway] npm ERR! Could not resolve dependency:
[gateway] npm ERR! peer graphql@"^15.5.3" from @apollo/gateway@0.42.3
[gateway] npm ERR! node_modules/@apollo/gateway
[gateway] npm ERR!   @apollo/gateway@"^0.42.3" from the root project
[gateway] npm ERR! 
[gateway] npm ERR! Conflicting peer dependency: graphql@15.8.0
[gateway] npm ERR! node_modules/graphql
npm ERR!   peer graphql@"^15.5.3" from @apollo/gateway@0.42.3
[gateway] npm ERR!   node_modules/@apollo/gateway
[gateway] npm ERR!     @apollo/gateway@"^0.42.3" from the root project
[gateway] npm ERR! 
[gateway] npm ERR! Fix the upstream dependency conflict, or retry
[gateway] npm ERR! this command with --force, or --legacy-peer-deps
[gateway] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[gateway] npm ERR! 
[gateway] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[gateway] 
[gateway] npm ERR! A complete log of this run can be found in:
[gateway] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_29_210Z-debug-0.log
[gateway] npm install exited with code 1
[gateway] npm install restarted
[locations] npm ERR! code ERESOLVE
[locations] npm ERR! ERESOLVE could not resolve
[locations] npm ERR! 
npm ERR! While resolving: @apollo/subgraph@0.1.2
[locations] npm ERR! Found: graphql@16.3.0
[locations] npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
[locations] npm ERR!   peer graphql@"^14.2.1 || ^15.0.0 || ^16.0.0" from @apollographql/apollo-tools@0.5.3
[locations] npm ERR!   node_modules/@apollographql/apollo-tools
[locations] npm ERR!     @apollographql/apollo-tools@"^0.5.3" from apollo-server-core@3.6.7
[locations] npm ERR!     node_modules/apollo-server/node_modules/apollo-server-core
npm ERR!       apollo-server-core@"^3.4.0" from apollo-server@3.4.0
[locations] npm ERR!       node_modules/apollo-server
[locations] npm ERR!         apollo-server@"^3.4.0" from the root project
npm ERR!       1 more (apollo-server-express)
[locations] npm ERR!   10 more (@graphql-tools/merge, @graphql-tools/mock, ...)
[locations] npm ERR! 
[locations] npm ERR! Could not resolve dependency:
[locations] npm ERR! peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
npm ERR! node_modules/@apollo/subgraph
[locations] npm ERR!   @apollo/subgraph@"^0.1.2" from the root project
[locations] npm ERR! 
[locations] npm ERR! Conflicting peer dependency: graphql@15.8.0
[locations] npm ERR! node_modules/graphql
[locations] npm ERR!   peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[locations] npm ERR!   node_modules/@apollo/subgraph
npm ERR!     @apollo/subgraph@"^0.1.2" from the root project
[locations] npm ERR! 
[locations] npm ERR! Fix the upstream dependency conflict, or retry
[locations] npm ERR! this command with --force, or --legacy-peer-deps
[locations] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[locations] npm ERR! 
npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[locations] 
[locations] npm ERR! A complete log of this run can be found in:
[locations] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_30_446Z-debug-0.log
[reviews] npm ERR! code ERESOLVE
[locations] npm install exited with code 1
[locations] npm install restarted
[reviews] npm ERR! ERESOLVE could not resolve
[reviews] npm ERR! 
[reviews] npm ERR! While resolving: @apollo/subgraph@0.1.2
[reviews] npm ERR! Found: graphql@16.3.0
[reviews] npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
npm ERR!   peer graphql@"^14.2.1 || ^15.0.0 || ^16.0.0" from @apollographql/apollo-tools@0.5.3
[reviews] npm ERR!   node_modules/@apollographql/apollo-tools
npm ERR!     @apollographql/apollo-tools@"^0.5.3" from apollo-server-core@3.6.7
[reviews] npm ERR!     node_modules/apollo-server/node_modules/apollo-server-core
[reviews] npm ERR!       apollo-server-core@"^3.4.0" from apollo-server@3.4.0
[reviews] npm ERR!       node_modules/apollo-server
npm ERR!         apollo-server@"^3.4.0" from the root project
[reviews] npm ERR!       1 more (apollo-server-express)
[reviews] npm ERR!   10 more (@graphql-tools/merge, @graphql-tools/mock, ...)
[reviews] npm ERR! 
npm ERR! Could not resolve dependency:
[reviews] npm ERR! peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[reviews] npm ERR! node_modules/@apollo/subgraph
npm ERR!   @apollo/subgraph@"^0.1.2" from the root project
[reviews] npm ERR! 
npm ERR! Conflicting peer dependency: graphql@15.8.0
[reviews] npm ERR! node_modules/graphql
[reviews] npm ERR!   peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
npm ERR!   node_modules/@apollo/subgraph
[reviews] npm ERR!     @apollo/subgraph@"^0.1.2" from the root project
[reviews] npm ERR! 
[reviews] npm ERR! Fix the upstream dependency conflict, or retry
[reviews] npm ERR! this command with --force, or --legacy-peer-deps
[reviews] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[reviews] npm ERR! 
npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[reviews] 
[reviews] npm ERR! A complete log of this run can be found in:
[reviews] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_30_469Z-debug-0.log
[reviews] npm install exited with code 1
[reviews] npm install restarted
[gateway] npm ERR! code ERESOLVE
[gateway] npm ERR! ERESOLVE could not resolve
[gateway] npm ERR! 
[gateway] npm ERR! While resolving: @apollo/gateway@0.42.3
[gateway] npm ERR! Found: graphql@16.3.0
npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
[gateway] npm ERR!   peer graphql@"^15.3.0 || ^16.0.0" from apollo-server-errors@3.3.1
[gateway] npm ERR!   node_modules/@apollo/gateway/node_modules/apollo-server-errors
[gateway] npm ERR!     apollo-server-errors@"^2.5.0 || ^3.0.0" from @apollo/gateway@0.42.3
[gateway] npm ERR!     node_modules/@apollo/gateway
npm ERR!       @apollo/gateway@"^0.42.3" from the root project
[gateway] npm ERR!   12 more (apollo-server-types, @graphql-tools/merge, ...)
[gateway] npm ERR! 
[gateway] npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^15.5.3" from @apollo/gateway@0.42.3
[gateway] npm ERR! node_modules/@apollo/gateway
[gateway] npm ERR!   @apollo/gateway@"^0.42.3" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: graphql@15.8.0
[gateway] npm ERR! node_modules/graphql
[gateway] npm ERR!   peer graphql@"^15.5.3" from @apollo/gateway@0.42.3
[gateway] npm ERR!   node_modules/@apollo/gateway
npm ERR!     @apollo/gateway@"^0.42.3" from the root project
[gateway] npm ERR! 
[gateway] npm ERR! Fix the upstream dependency conflict, or retry
[gateway] npm ERR! this command with --force, or --legacy-peer-deps
[gateway] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[gateway] npm ERR! 
[gateway] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[gateway] 
[gateway] npm ERR! A complete log of this run can be found in:
[gateway] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_30_711Z-debug-0.log
[gateway] npm install exited with code 1
[gateway] npm install restarted
[locations] npm ERR! code ERESOLVE
[locations] npm ERR! ERESOLVE could not resolve
[locations] npm ERR! 
[locations] npm ERR! While resolving: @apollo/subgraph@0.1.2
[locations] npm ERR! Found: graphql@16.3.0
[locations] npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
[locations] npm ERR!   peer graphql@"^14.2.1 || ^15.0.0 || ^16.0.0" from @apollographql/apollo-tools@0.5.3
[locations] npm ERR!   node_modules/@apollographql/apollo-tools
[locations] npm ERR!     @apollographql/apollo-tools@"^0.5.3" from apollo-server-core@3.6.7
[locations] npm ERR!     node_modules/apollo-server/node_modules/apollo-server-core
[locations] npm ERR!       apollo-server-core@"^3.4.0" from apollo-server@3.4.0
npm ERR!       node_modules/apollo-server
[locations] npm ERR!         apollo-server@"^3.4.0" from the root project
[locations] npm ERR!       1 more (apollo-server-express)
[locations] npm ERR!   10 more (@graphql-tools/merge, @graphql-tools/mock, ...)
[locations] npm ERR! 
[locations] npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[locations] npm ERR! node_modules/@apollo/subgraph
[locations] npm ERR!   @apollo/subgraph@"^0.1.2" from the root project
[locations] npm ERR! 
[locations] npm ERR! Conflicting peer dependency: graphql@15.8.0
[locations] npm ERR! node_modules/graphql
[locations] npm ERR!   peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[locations] npm ERR!   node_modules/@apollo/subgraph
[locations] npm ERR!     @apollo/subgraph@"^0.1.2" from the root project
[locations] npm ERR! 
[locations] npm ERR! Fix the upstream dependency conflict, or retry
[locations] npm ERR! this command with --force, or --legacy-peer-deps
[locations] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
[locations] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[locations] 
[locations] npm ERR! A complete log of this run can be found in:
[locations] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_31_647Z-debug-0.log
[locations] npm install exited with code 1
[reviews] npm ERR! code ERESOLVE
[reviews] npm ERR! ERESOLVE could not resolve
[reviews] npm ERR! 
[reviews] npm ERR! While resolving: @apollo/subgraph@0.1.2
[reviews] npm ERR! Found: graphql@16.3.0
[reviews] npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
[reviews] npm ERR!   peer graphql@"^14.2.1 || ^15.0.0 || ^16.0.0" from @apollographql/apollo-tools@0.5.3
[reviews] npm ERR!   node_modules/@apollographql/apollo-tools
[reviews] npm ERR!     @apollographql/apollo-tools@"^0.5.3" from apollo-server-core@3.6.7
[reviews] npm ERR!     node_modules/apollo-server/node_modules/apollo-server-core
[reviews] npm ERR!       apollo-server-core@"^3.4.0" from apollo-server@3.4.0
[reviews] npm ERR!       node_modules/apollo-server
[reviews] npm ERR!         apollo-server@"^3.4.0" from the root project
[reviews] npm ERR!       1 more (apollo-server-express)
[reviews] npm ERR!   10 more (@graphql-tools/merge, @graphql-tools/mock, ...)
npm ERR! 
[reviews] npm ERR! Could not resolve dependency:
[reviews] npm ERR! peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[reviews] npm ERR! node_modules/@apollo/subgraph
[reviews] npm ERR!   @apollo/subgraph@"^0.1.2" from the root project
npm ERR! 
[reviews] npm ERR! Conflicting peer dependency: graphql@15.8.0
[reviews] npm ERR! node_modules/graphql
[reviews] npm ERR!   peer graphql@"^15.5.3" from @apollo/subgraph@0.1.2
[reviews] npm ERR!   node_modules/@apollo/subgraph
[reviews] npm ERR!     @apollo/subgraph@"^0.1.2" from the root project
[reviews] npm ERR! 
[reviews] npm ERR! Fix the upstream dependency conflict, or retry
[reviews] npm ERR! this command with --force, or --legacy-peer-deps
[reviews] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[reviews] npm ERR! 
[reviews] npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[reviews] 
[reviews] npm ERR! A complete log of this run can be found in:
[reviews] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_31_706Z-debug-0.log
[reviews] npm install exited with code 1
[gateway] npm ERR! code ERESOLVE
[gateway] npm ERR! ERESOLVE could not resolve
npm ERR! 
[gateway] npm ERR! While resolving: @apollo/gateway@0.42.3
[gateway] npm ERR! Found: graphql@16.3.0
[gateway] npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
[gateway] npm ERR!   peer graphql@"^15.3.0 || ^16.0.0" from apollo-server-errors@3.3.1
[gateway] npm ERR!   node_modules/@apollo/gateway/node_modules/apollo-server-errors
[gateway] npm ERR!     apollo-server-errors@"^2.5.0 || ^3.0.0" from @apollo/gateway@0.42.3
[gateway] npm ERR!     node_modules/@apollo/gateway
[gateway] npm ERR!       @apollo/gateway@"^0.42.3" from the root project
npm ERR!   12 more (apollo-server-types, @graphql-tools/merge, ...)
[gateway] npm ERR! 
[gateway] npm ERR! Could not resolve dependency:
[gateway] npm ERR! peer graphql@"^15.5.3" from @apollo/gateway@0.42.3
[gateway] npm ERR! node_modules/@apollo/gateway
[gateway] npm ERR!   @apollo/gateway@"^0.42.3" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: graphql@15.8.0
[gateway] npm ERR! node_modules/graphql
[gateway] npm ERR!   peer graphql@"^15.5.3" from @apollo/gateway@0.42.3
[gateway] npm ERR!   node_modules/@apollo/gateway
[gateway] npm ERR!     @apollo/gateway@"^0.42.3" from the root project
[gateway] npm ERR! 
[gateway] npm ERR! Fix the upstream dependency conflict, or retry
[gateway] npm ERR! this command with --force, or --legacy-peer-deps
[gateway] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[gateway] npm ERR! 
npm ERR! See /Users/yannsimon/.npm/eresolve-report.txt for a full report.
[gateway] 
[gateway] npm ERR! A complete log of this run can be found in:
[gateway] npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_32_403Z-debug-0.log
[gateway] npm install exited with code 1
[activities] 
[activities] added 234 packages, and audited 235 packages in 6s
[activities] 
[activities] 20 packages are looking for funding
[activities]   run `npm fund` for details
[activities] 
[activities] 7 vulnerabilities (6 moderate, 1 critical)
[activities] 
[activities] To address all issues, run:
[activities]   npm audit fix
[activities] 
[activities] Run `npm audit` for details.
[activities] npm install exited with code 0
[client] npm WARN deprecated @types/classnames@2.3.1: This is a stub types definition. classnames provides its own type definitions, so you do not need this installed.
[client] npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
[client] npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
[client] npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
[client] npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[client] npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
[client] npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
[client] npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
[client] npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
[client] npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
[client] npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
[client] npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
[client] npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
[client] npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
[client] npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
[client] npm WARN deprecated rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
[client] 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.
[client] 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.
[client] npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
[client] npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
[client] npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
[client] npm WARN deprecated core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
[client] 
[client] added 2128 packages, and audited 2129 packages in 39s
[client] 
[client] 167 packages are looking for funding
[client]   run `npm fund` for details
[client] 
[client] 36 vulnerabilities (1 low, 2 moderate, 22 high, 11 critical)
[client] 
[client] To address issues that do not require attention, run:
[client]   npm audit fix
[client] 
[client] To address all issues (including breaking changes), run:
[client]   npm audit fix --force
[client] 
[client] Run `npm audit` for details.
[client] npm install exited with code 0
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "[object Array]".] {
  code: 'ERR_UNHANDLED_REJECTION'
}
npm ERR! code 1
npm ERR! path /Users/yannsimon/projects/apollo/odyssey-voyage-I-lab
npm ERR! command failed
npm ERR! command sh -c -- npm run install-all

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_29_15_790Z-debug-0.log

At step https://www.apollographql.com/tutorials/voyage-1-lab/installing-federation-2 :

$ cd gateway
$ npm install @apollo/gateway@latest-2
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: location-reviews@1.0.0
npm ERR! Found: @apollo/gateway@0.42.3
npm ERR! node_modules/@apollo/gateway
npm ERR!   @apollo/gateway@"2.1.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @apollo/gateway@"2.1.3" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: graphql@16.6.0
npm ERR! node_modules/graphql
npm ERR!   peer graphql@"^16.5.0" from @apollo/gateway@2.1.3
npm ERR!   node_modules/@apollo/gateway
npm ERR!     @apollo/gateway@"2.1.3" 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 /Users/yannsimon/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yannsimon/.npm/_logs/2022-10-04T09_38_58_143Z-debug-0.log

By changing the dependencies in gateway to:

  "dependencies": {
    "@apollo/gateway": "2.1.3",
    "apollo-server": "3.10.2",
    "dotenv": "^10.0.0",
    "fs": "0.0.1-security",
    "graphql": "16.5.0",
    "nodemon": "^2.0.13"
  },

and in activities to:

  "dependencies": {
    "@apollo/subgraph": "2.1.3",
    "apollo-server": "3.10.2",
    "fs": "0.0.1-security",
    "graphql": "16.5.0",
    "nodemon": "^2.0.13"
  }

Thanks so much @yanns for surfacing this issue, and @xsoufiane for providing a fix! We’re in the process of updating the dependencies in the starter code for this lab to ensure that future learners don’t run into the same errors. Please let us know if you encounter any other problems and we’ll do our best to address them as soon as possible.