Sails 1.4.2 release fixes the cyclic dependency warning in Node versions >= 14
A patch release of Sails - v1.4.2 was cut out recently. This release merges a PR which fixes a Node warning you may have experience if you are runnning Sails on Node 14 or higher.
Getting this release
In order to upgrade to this release, you will need to do the following:
Upgrade the Sails CLI
You need to upgrade the Sails CLI so new Sails projects you generate via the CLI will have the latest version of Sails and it's dependencies. Simply run the below command in your terminal:
npm i -g sails
This should output:
Upgrading existing Sails project
Most likely you have an existing Sails project you'd like to upgrade to this release.
To do this, you will need to ugrade the
sails dependency to version
1.4.2 and the
sails-hook-orm to version
3.0.2. Do this by running:
npm i email@example.com firstname.lastname@example.org
Another way is to simply remove the entries for
sails-hook-orm in your
package.json and run:
npm i sails sails-hook-orm --save
Or you can simply do:
npm i sails@latest sails-hook-orm@latest
To get the latest major versions of both
Now if you've done the above upgrading steps you can run
sails lift in Node version >= 14 without the Circular dependency warning.
The Sailcasts Blog Newsletter
Get notified 🔔 when new articles are published on the Sailcasts Blog.