Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install apollo-server #6469

Closed
maxlew opened this issue May 24, 2022 · 16 comments
Closed

Unable to install apollo-server #6469

maxlew opened this issue May 24, 2022 · 16 comments

Comments

@maxlew
Copy link

maxlew commented May 24, 2022

At the moment users are unable to install apollo-sever since the release of 3.8.0 about an hour ago. I'm not sure if a broken build was published or if the order of publishing needs to be adjusted so as not to cause 'downtime' during a new version rollout.

Looking at the package.json file inside of apollo-server-express seems to indicate that 3.8.0 was intended to be published, however it's not yet available in NPM - https://www.npmjs.com/package/apollo-server-express.

Running npm install apollo-server graphql in a blank project returns the message

npm ERR! code ETARGET
npm ERR! notarget No matching version found for apollo-server-express@^3.8.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'apollo-server'
npm ERR! notarget

node version: 14.19.3
npm version: 6.14.17

@trevor-scheer
Copy link
Member

Yikes, thanks for the report! Looking into this now.

@Bigj420
Copy link

Bigj420 commented May 24, 2022

Ok

@trevor-scheer
Copy link
Member

Update: the versions are in a weird state and it appears to be on NPM's side. I've reached out to support and will try to resolve the issue via a patch release or rolling back the latest tag on the versions that are 3.8.0 to 3.7.0 (this may be a bad choice if the issue resolves itself, so probably not going to do that as I'm thinking this through).

In the meantime, please specifically install apollo-server@3.7.0.

@trevor-scheer
Copy link
Member

I didn't hear back from NPM tonight, so I went ahead and published new patch versions. All of the apollo-server-* packages are now at v3.8.1 and you should be able to successfully install the latest versions. Thanks again for the report!

@fsabeti95
Copy link

I have still issues with installing apollo-server-express@^3.8.1

npm ERR! notarget No matching version found for apollo-server-express@^3.8.1.

@hcasanov
Copy link

Hello ! We have found temporary solution with

npm uninstall apollo-server-express
rm -f package-lock.json
rm -rf node_modules
npm i
npm i --save apollo-server-express@3..8.0

@dqn
Copy link

dqn commented May 25, 2022

The problem is v3.8.1 which used to be able to be installed, can no longer be installed.
Is this a bug with npm? I have apollo-server-express v3.8.1 in local, but it doesn't seem to exist in npm now.

@codebombcode
Copy link

apollo-server-express@^3.8.0 doesn't exist。 The problem is v3.8.1 of apollo-server。so I keep the version in v3.8.0 of apollo-server, I solved it。eg: "apollo-server": "^3.8.0" => "apollo-server": "3.8.0"

@KriAga
Copy link

KriAga commented May 25, 2022

Yes, so currently the fix as mentioned by @hcasanov works fine, just run the below command:

npm i --save apollo-server-express@3.8.0

@dqn
Copy link

dqn commented May 25, 2022

They are just workarounds, not a fundamental solution. The problem to be solved is that v3.8.1, which should be publicly available, does not exist.

All of the apollo-server-* packages are now at v3.8.1 and you should be able to successfully install the latest versions.

@Bipin-Chaudhary
Copy link

Hi, i am facing the same issue while installing apollo-server-express@^3.8.1, does anyone has a solution why is npm acting like this.

@trevor-scheer
Copy link
Member

This was working before, something is up with npm again. I'll take a look when I start my day and open a ticket with them if it hasn't resolved itself by then.

In the meantime please use the workaround proposed and install the most recent version that's available.

@Bipin-Chaudhary
Copy link

Bipin-Chaudhary commented May 25, 2022

This was working before, something is up with npm again. I'll take a look when I start my day and open a ticket with them if it hasn't resolved itself by then.

In the meantime please use the workaround proposed and install the most recent version that's available.

I have installed apollo-server previous version and its working fine.

@trevor-scheer
Copy link
Member

Following up:

I've sent a message to npm. I've also discovered this affects apollo-server-lambda. For now please install version 3.8.0 of the following packages if you use them:
apollo-server (dependent on apollo-server-express)
apollo-server-express
apollo-server-lambda

You can install a specific version using the following notation as mentioned above:
npm i apollo-server@3.8.0

Due to a recent npm issue, 3.8.1 was published over 3.8.0 as a hotfix. Codewise, they are the same, so you're not missing any important fixes in that patch. Thanks for your patience!

Going to reopen until this is resolved.

@trevor-scheer trevor-scheer reopened this May 25, 2022
@trevor-scheer
Copy link
Member

Still haven't heard from npm. I've updated the latest tag of apollo-server to 3.8.0 for now, since that's probably the most common and confusing path to error until apollo-server-express@3.8.1 exists.

@trevor-scheer
Copy link
Member

Still haven't heard from npm but the version issue seems to have cleared up. Repromoting apollo-server@3.8.1 to latest. Please let me know if you see any other issues.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants