levid / angular-sails-socketio-mongo-demo

AngularJS, SailsJS, Socket.io & MongoDB Demo
170 stars 50 forks source link

Error when following instructions: version conflict #4

Open kristianmandrup opened 11 years ago

kristianmandrup commented 11 years ago
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

JumpLink commented 11 years ago

I have the same problem

tdm00 commented 11 years ago

:heavy_plus_sign::one:

kristianmandrup commented 11 years ago

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!

mikermcneil commented 11 years ago

Hey guys, you might try using node app.js instead-- that should use the local one

PEJO89 commented 10 years ago

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'
mikermcneil commented 10 years ago

@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.