Meteor Universal bcrypt package causes crash


#1

I am following the instructions to install meteor on a Raspberry Pi 2 Model B but when I try to run the todos example, I get this error log:

root@raspberrypi:/tmp/todos# $HOME/meteor/meteor
[[[[[ /tmp/todos ]]]]]                        

=> Started proxy.                             
=> Started MongoDB.                           
npm-bcrypt: updating npm dependencies -- bcrypt...
=> Errors prevented startup:                  
   
   While building package npm-bcrypt:
   error: couldn't install npm packages from npm-shrinkwrap: Command failed: npm WARN package.json
   packages-for-meteor-npm-bcrypt@0.0.0 No description
   npm WARN package.json packages-for-meteor-npm-bcrypt@0.0.0 No repository field.
   npm WARN package.json packages-for-meteor-npm-bcrypt@0.0.0 No README data
   gyp ERR! configure error 
   gyp ERR! stack Error: EACCES, mkdir
   '/root/meteor/packages/non-core/npm-bcrypt/.npm/package-new-14yu8n6/node_modules/bcrypt/build'
   gyp ERR! System Linux 4.1.18-v7+
   gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
   gyp ERR! cwd
   /root/meteor/packages/non-core/npm-bcrypt/.npm/package-new-14yu8n6/node_modules/bcrypt
   gyp ERR! node -v v0.10.29
   gyp ERR! node-gyp -v v0.12.2
   gyp ERR! not ok 
   
   npm ERR! bcrypt@0.7.8 install: `node-gyp rebuild`
   npm ERR! Exit status 1
   npm ERR! 
   npm ERR! Failed at the bcrypt@0.7.8 install script.
   npm ERR! This is most likely a problem with the bcrypt package,
   npm ERR! not with npm itself.
   npm ERR! Tell the author that this fails on your system:
   npm ERR!     node-gyp rebuild
   npm ERR! You can get their info via:
   npm ERR!     npm owner ls bcrypt
   npm ERR! There is likely additional logging output above.
   npm ERR! System Linux 4.1.18-v7+
   npm ERR! command "/root/meteor/dev_bundle/bin/node" "/root/meteor/dev_bundle/bin/npm" "install"
   npm ERR! cwd /root/meteor/packages/non-core/npm-bcrypt/.npm/package-new-14yu8n6
   npm ERR! node -v v0.10.40
   npm ERR! npm -v 1.4.28
   npm ERR! code ELIFECYCLE
   npm ERR! not ok code 0
   npm WARN package.json packages-for-meteor-npm-bcrypt@0.0.0 No description
   npm WARN package.json packages-for-meteor-npm-bcrypt@0.0.0 No repository field.
   npm WARN package.json packages-for-meteor-npm-bcrypt@0.0.0 No README data
   gyp ERR! configure error 
   gyp ERR! stack Error: EACCES, mkdir
   '/root/meteor/packages/non-core/npm-bcrypt/.npm/package-new-14yu8n6/node_modules/bcrypt/build'
   gyp ERR! System Linux 4.1.18-v7+
   gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
   gyp ERR! cwd
   /root/meteor/packages/non-core/npm-bcrypt/.npm/package-new-14yu8n6/node_modules/bcrypt
   gyp ERR! node -v v0.10.29
   gyp ERR! node-gyp -v v0.12.2
   gyp ERR! not ok 
   
   npm ERR! bcrypt@0.7.8 install: `node-gyp rebuild`
   npm ERR! Exit status 1
   npm ERR! 
   npm ERR! Failed at the bcrypt@0.7.8 install script.
   npm ERR! This is most likely a problem with the bcrypt package,
   npm ERR! not with npm itself.
   npm ERR! Tell the author that this fails on your system:
   npm ERR!     node-gyp rebuild
   npm ERR! You can get their info via:
   npm ERR!     npm owner ls bcrypt
   npm ERR! There is likely additional logging output above.
   npm ERR! System Linux 4.1.18-v7+
   npm ERR! command "/root/meteor/dev_bundle/bin/node" "/root/meteor/dev_bundle/bin/npm" "install"
   npm ERR! cwd /root/meteor/packages/non-core/npm-bcrypt/.npm/package-new-14yu8n6
   npm ERR! node -v v0.10.40
   npm ERR! npm -v 1.4.28
   npm ERR! code ELIFECYCLE
   npm ERR! not ok code 0
   
   
=> Your application has errors. Waiting for file change.

Can anybody recommend a solution/workaround?

Thank you for reading.


#2

Have the same problem here cannot deploy to live because of this… very disappointing using meteor got to say I’ve spent 2 days trying docker, mup and now just the meteor build manually and it all failed.

Really no idea what to do, have installed bcrypt manually still same error on debian. Need this fixed asap


#3

I fixed it!

  1. Delete the package from the node_modules directory
  2. Download with npm install bcrypt
  3. cp -r the files from the previous step over the bundled bcrypt.
  4. Restart app it should be working now.