cgmartin / sailsjs-angularjs-bootstrap-example

A suite of examples written for Sails.js, AngularJS, and Twitter Bootstrap
320 stars 105 forks source link

Can't get started #18

Closed anonimusprogramus closed 9 years ago

anonimusprogramus commented 10 years ago

Steps:

  1. Fork & clone yout git
  2. Goto the directory
  3. npm install
  4. bower install
  5. node app.js

Result:

~/sailsjs-angularjs-bootstrap-example/node_modules/bcrypt/node_modules/bindings/bindings.js:79
        throw e
              ^
Error: ~/sailsjs-angularjs-bootstrap-example/node_modules/bcrypt/build/Release/bcrypt_lib.node: failed to map segment from shared object: Operation not permitted
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at bindings (~/sailsjs-angularjs-bootstrap-example/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15)
    at Object.<anonymous> (~/sailsjs-angularjs-bootstrap-example/node_modules/bcrypt/bcrypt.js:1:97)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

ps. I've tried too the sudo npm install -g sails with sails lift, but same result.

Q: Were the step I did alright? How to fix this?

Thanks a lot Martin.

cgmartin commented 10 years ago

Using the steps in the README.md, I'm not able to reproduce.

It might be due to a bad or incomplete build. You might try the suggestions from this thread: https://github.com/ncb000gt/node.bcrypt.js/issues/141

I would suggest you remove anything you have in node_modules or previous build and try to install again

Or potentially a filesystem issue:

It was a filesystem issue. Lack of support for symlinks via cifs/smb. That was killing the build. Copied the project to /tmp, builds fine, runs fine. No warnings, no errors. Sweet. dmesg to the rescue.

anonimusprogramus commented 10 years ago

OK, I'll try re-starting, will keep you posted.

Thanks!