angular-sails-socketio-mongo-demo
angular-sails-socketio-mongo-demo copied to clipboard
Error when following instructions: version conflict
Error: Cannot find module '/Users/kmandrup/private/angular-projects/angular-sails-crud/node_modules/sails/lib'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at liftSails (/usr/local/lib/node_modules/sails/bin/lift.js:98:7)
However there IS a folder /Users/kmandrup/private/angular-projects/angular-sails-crud/node_modules/sails/lib
Looks like it uses my globally installed Sails 0.9.7 and looks for a file locally which is "out of sync"? i.e version conflict, which others also have commented on
I have the same problem
:heavy_plus_sign::one:
I think I saw is a fork out there which is trying to upgrade this example to the 0.9x version of SailsJS. I'm also working on creating a suitable MEAN generator for using Angular with Sails. Now I'm also looking into RacerJS integration, and in the end would be lovely with BaconJS integration as well ;) Crazy names!
Hey guys, you might try using node app.js
instead-- that should use the local one
Using node app.js
works. Why doesn't sails lift
work?
module.js:340
throw err;
^
Error: Cannot find module 'C:\some_path\sails\angular-sails-socketio-mongo-d
emo/node_modules/sails/lib'
@PEJO89 the newer versions of Sails expect the executable in a different location- this has been improved in 0.10. Highly recommend everyone try npm install sails@beta
-- just released 0.10.0-rc5 w/ new error normalization in Waterline, a couple of new custom responses (including res.negotiate
), and, of course, associations.