Created
March 30, 2015 00:20
-
-
Save raym/f1fae1a872069db60d8d to your computer and use it in GitHub Desktop.
upstart meteor node npm bcrypt invalid elf header fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# if when looking in /var/log/upstart/yourapp.log, you find the error: | |
# Error: /home/yourapp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header | |
# at Error (native) | |
# at Module.load (module.js:355:32) | |
# at Function.Module._load (module.js:310:12) | |
# at Module.require (module.js:365:17) | |
# at require (module.js:384:17) | |
# at bindings (/home/yourapp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15) | |
# at Object.<anonymous> (/home/yourapp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35) | |
# at Module._compile (module.js:460:26) | |
# at Object.Module._extensions..js (module.js:478:10) | |
# at Module.load (module.js:355:32) | |
# this may fix it: | |
appDir=todos | |
rm -rf /home/$appDir/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt | |
cd /home/$appDir/bundle/programs/server | |
npm install bcrypt | |
cp -r /home/$appDir/bundle/programs/server/node_modules/bcrypt /home/$appDir/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment