Migrating to Apollo Server 4

I am having my NodeJs version 18.x and trying to upgrade to apollo-server 4, but it is giving me an error that version 4 is not compatible with that, can you help me with what can I do (I don’t want to downgrade my NodeJs version)

Giving the screenshot of errors which I am encountering with

The new package name for v4 is @apollo/server, so you should remove apollo-server and apollo-server-* packages and replace them with @apollo/server.

It also looks like you’re running old versions of federation packages, you should update those to v2 separately.