angular-sails-socketio-mongo-demo icon indicating copy to clipboard operation
angular-sails-socketio-mongo-demo copied to clipboard

Error when following instructions: version conflict

Open kristianmandrup opened this issue 11 years ago • 6 comments

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

kristianmandrup avatar Oct 30 '13 16:10 kristianmandrup

I have the same problem

JumpLink avatar Nov 03 '13 18:11 JumpLink

:heavy_plus_sign::one:

tdm00 avatar Nov 04 '13 15:11 tdm00

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!

kristianmandrup avatar Nov 04 '13 16:11 kristianmandrup

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

mikermcneil avatar Nov 05 '13 18:11 mikermcneil

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 avatar Mar 27 '14 15:03 PEJO89

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

mikermcneil avatar Apr 01 '14 00:04 mikermcneil