Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I update to the latest version of `serve`

I am using Gatsby v1.1.52 running Node v8.11.3.

When I run gatsby serve I am prompted with with message mentioning that there is an UPDATE AVAILABLE: The latest version ofserveis 9.1.0. I've tried running npm update -g gatsby' and 'npm update -g gatsby-cli.

Update available message

I can't find any documentation: the manual entry does not exist, the options (gatsby ?) doesn't include an update command and gatsby serve ? only serves the website again.

Gatsby options

I found a global npm package called serve but it is on version 5.6.0 and I don't think it is the same package that is being referred to in this instance but I am grasping at straws here.

Any ideas what command I need to run in order to update serve?

like image 506
Clarice Bouwer Avatar asked Jun 25 '18 00:06

Clarice Bouwer


People also ask

What is the serve command?

Serves a theme for local development. Creates a local assets server and proxies the theme preview using a BrowserSync instance.

Does npm install update packages?

The npm install installs all modules that are listed on package. json file and their dependencies. npm update updates all packages in the node_modules directory and their dependencies.


1 Answers

For those not using Gatsby, here is how to update serve:

Globally: sudo npm update -g serve

Locally: npm update serve

like image 169
varogen Avatar answered Sep 28 '22 16:09

varogen