Gatsby: Cannot Update Gatsby E404 serve@^6.4.0

Created on 2 Jun 2018  ·  4Comments  ·  Source: gatsbyjs/gatsby

Description

I am unable to update Gatsby from 1.9.261 to 1.9.267

Steps to reproduce

Run npm update or npm install [email protected]

Expected result

No E404 errors

Actual result

404 Not Found: serve@^6.4.0

Environment

  • Gatsby version (npm list gatsby): 1.9.261
  • gatsby-cli version (gatsby --version): 1.1.57
  • Node.js version: v8.11.1
  • Operating System: MacOS 10.12.6
question or discussion

Most helpful comment

temp workaround found here: https://github.com/zeit/serve/issues/398#issuecomment-394041910

All 4 comments

something funky is happening for me too when trying to install gatsby-cli's dependency serve

i'm getting this when running: yarn add global gatsby-cli

ryanchang ~/projects/gatsby-fun % yarn add global gatsby-cli

yarn add v1.7.0
warning ../../package.json: No license field
info No lockfile found.
[1/4] 🔍  Resolving packages...
⠁ (node:87453) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning gatsby > [email protected]: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
warning gatsby > [email protected]: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
error Couldn't find package "serve@^6.4.0" required by "gatsby@^1.9.247" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

i get the same error
npm ERR! 404 Not Found: serve@^6.4.0

temp workaround found here: https://github.com/zeit/serve/issues/398#issuecomment-394041910

I think this was a temporary npm issue. Closing, but please comment or re-open if you're still seeing this.

Was this page helpful?
0 / 5 - 0 ratings