# Migrating to Apollo Server 4

**URL:** <https://community.apollographql.com/t/migrating-to-apollo-server-4/7277>\
**Category:** Server\
**Tags:** server, federation\
**Created:** [March 8, 2024, 5:28am UTC](https://community.apollographql.com/t/migrating-to-apollo-server-4/7277 "2024-03-08T05:28:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tushar\_Gautam](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/tushar_gautam/32/4956_2.png) [@Tushar\_Gautam](https://community.apollographql.com/u/Tushar_Gautam)\
**Post date:** [March 8, 2024, 5:28am UTC](https://community.apollographql.com/t/migrating-to-apollo-server-4/7277/1 "2024-03-08T05:28:00Z")

</div>

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

 ![Screenshot 2024-03-08 at 10.55.54 am](https://us1.discourse-cdn.com/flex019/uploads/apollographql/original/2X/3/3f4a8ac3a4d02a0265c70eca410dad6b735211de.jpeg)

---

<div class="post-metadata">

**Author:** ![trevor.scheer](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/trevor.scheer/32/5669_2.png) [@trevor.scheer](https://community.apollographql.com/u/trevor.scheer)\
**Post date:** [March 11, 2024, 5:21pm UTC](https://community.apollographql.com/t/migrating-to-apollo-server-4/7277/2 "2024-03-11T17:21:30Z")

</div>

[The new package name for v4 is `@apollo/server`](https://www.apollographql.com/docs/apollo-server/migration/), 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.
