Skip to content Skip to sidebar Skip to footer

Sails V10.0 On Mysql Encountering 'schema' Of Undefined

i'm trying out sails js version 0.10.0 with sails-mysql adapter 0.10.6 I created two models: Customer.js module.exports = { connection: 'someMysqlServer', attributes: {

Solution 1:

This seems like a broken dependencies issue. Try:

rm -rf node_modules
npm cache clear
npm install

To reinstall all the dependencies, then try sails lift.

At this point you will have Sails installed locally in your project, and sails lift will use that copy. To perform a similar surgery on your global sails install, do:

sudo npm uninstall -g sails
npm cache clear
sudo npm install -g sails

Then rm -rf node_modules/sails in your project so that sails lift will use the global install.

Post a Comment for "Sails V10.0 On Mysql Encountering 'schema' Of Undefined"