How can I update my Sails.js framework (installed on OSX) to newest version using terminal/command line?
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.
To get the locally installed version of Sails from within a particular project, run npm ls sails .
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With