apollographql / apollo-tooling

✏️ Apollo CLI for client tooling (Mostly replaced by Rover)
https://apollographql.com
MIT License
3.04k stars 467 forks source link

Cannot install Apollo on Node 18 #2666

Closed shawn-dsz closed 1 year ago

shawn-dsz commented 1 year ago

Intended outcome:

Install apollo cli

Actual outcome:

Running npm i apollo -D results in:

npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: @apollo/federation@0.27.0
npm ERR! notsup Not compatible with your version of node/npm: @apollo/federation@0.27.0
npm ERR! notsup Required: {"node":">=12.13.0 <17.0"}
npm ERR! notsup Actual:   {"npm":"8.19.2","node":"v18.12.1"}

I dont have this module: @apollo/federation@0.27.0 installed.

How to reproduce the issue:

run npm i apollo on Node 18.12.1

Versions All Versions

Donald47 commented 1 year ago

@apollo/federation@0.27.0 is a dependency of apollo-language-server https://github.com/apollographql/apollo-tooling/blob/2398fe8184ec075c19161a9ed4d94d6d62090be3/packages/apollo-language-server/package.json#L19-L20

Which apollo depends on in turn.

Now @apollo/federation have updated and do support Node 18 now: https://github.com/apollographql/federation/issues/1752 so it should (hopefully) just be a case of one of the maintainers here bumping the dependency. But I know they're looking at only providing minimal support for this package because they plan to deprecate it.

hjr3 commented 1 year ago

But I know they're looking at only providing minimal support for this package because they plan to deprecate it.

How do we know they are planning to deprecate it?

edit: I found https://github.com/apollographql/apollo-tooling/issues/2551

spawnia commented 1 year ago

This issue is not really fixed yet, since the depedency in the apollo package has not been updated. @shawn-dsz would you mind reopening?

Jianrong-Yu commented 1 year ago

Will this issue be reopened? The apollo CLI is just partially deprecated, we still need the client:codegen commands to generate the Types