Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How update Sails.js to newest version?

How can I update my Sails.js framework (installed on OSX) to newest version using terminal/command line?

like image 677
lukaszkups Avatar asked Mar 23 '14 19:03

lukaszkups


People also ask

How do I update the version of sails?

Install the sails-hook-grunt package into your app with npm install --save sails-hook-grunt , unless your app has the Grunt hook disabled. Install the latest version of your database adapter. For example, if you're using sails-mysql , do npm install --save sails-mysql@latest . Upgrade your sails.

How do I know my sails version?

To get the locally installed version of Sails from within a particular project, run npm ls sails .

Is sails js popular?

js apps in a matter of weeks, not months. Sails is the most popular MVC framework for Node. js, designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture.

Is sails js framework?

Sails. js is a web framework that you can use to easily build customized enterprise-grade Node. js applications. It resembles the MVC architecture from such frameworks as Ruby on Rails, but with improved support for the more data-oriented modern style of developing web apps.


Video Answer


2 Answers

To update to the latest stable version:

npm update sails

or, if you've installed it globally, it would be:

sudo npm update -g sails

to install globally. This will overwrite any existing install.

like image 97
sgress454 Avatar answered Oct 02 '22 19:10

sgress454


npm update [-g] [<name> [<name> ...]]

This command will update all the packages listed to the latest version (specified by the tag config). It will also install missing packages.

If the -g flag is specified, this command will update globally installed packages.

So for you, I guess that would be: npm update sails or sudo npm -g update sails depending on how and where you installed it.

like image 45
James Hibbard Avatar answered Oct 02 '22 20:10

James Hibbard