Hoang Phuoc Truong
Hoang Phuoc Truong

Reputation: 189

SailsJS Error: Cannot find module 'sails/node_modules/waterline/lib/waterline/query/deferred'

Whenever I start SailsJS I get this error:

Error: Cannot find module 'sails/node_modules/waterline/lib/waterline/query/deferred'

Tests are not runnable because whenever it try to lift sails for test, it gets an error and stops there.

Please help.

Upvotes: 2

Views: 1049

Answers (2)

I don't know why but runnin npm install --prefix ./node_modules/sails waterline command it works

Upvotes: 0

jhonny lopez
jhonny lopez

Reputation: 325

first you try reinstall sails but if you don't, can add en package.json in dependencies: "waterline": "~0.10.26", save file y later run npm install inside you project folder, this should install waterline

Upvotes: 2

Related Questions