balderdashy / sails

Realtime MVC Framework for Node.js
https://sailsjs.com
MIT License
22.85k stars 1.95k forks source link

Cannot use standalone sails-disk #7012

Open flaviotulino opened 4 years ago

flaviotulino commented 4 years ago

Node version: v12.13 Sails version (sails): none DB adapter & version (e.g. sails-mysql@5.55.5): sails-disk


Hello all, I'm trying to use waterline + sails-disk but when I require/import the adapter from "sails-disk" I encounter two errors:

Cannot find module '/machines/cp'

Error [ImplementationError]: Could not find cp, one of the modules in pkg.machinepack.machines.

Does anyone have any ideas?

Cheers!

sailsbot commented 4 years ago

@flaviotulino Thanks for posting! We'll take a look as soon as possible.

In the mean time, there are a few ways you can help speed things along:

Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.

For help with questions about Sails, click here.

eashaw commented 4 years ago

Hi @flaviotulino, thank you for your interest in sails. You might want to try reinstalling some packages and seeing if that helps fix this issue. Delete the lock file rm -rf node_modulesand reinstall npm install