Meteor build for Windows issue with bcrypt


#1

Hi,
I have been developing Meteor application on Windows. Works very well. So far, I was deploying to Linux server. Worked also very well.

Now I need to build for Windows:

meteor build --directory c:\build-win32 --architecture os.windows.x86_32

No issue.

I want to run:

 node main.js

I am asked to run couple of npm install. Done. After this I need to run node main.js again and receive errors like

C:\test\bundle>node main.js
C:\test\bundle\node_modules\fibers\future.js:267
                                                throw(ex);
                                                      ^
  Error: error: 127C:\test\bundle\programs\server\npm\npm-bcrypt\node_modules\bcrypt\build\Release\bcrypt_lib.node
        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 (C:\test\bundle\programs\server\npm\npm-bcrypt\node_modules\bcrypt\node_modules\bindings\bindings.js:74:15)
       at Object.<anonymous> (C:\test\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)

Any help or experience?

Thanks a lot


#2

I tried … as the correct user on a 'Nix system

cd programs/server/
npm install bcrypt


#3

you should run npm install to get all necessary npms after build


#4

I did that first … but it didn’t install or re-install bcrypt … and I needed that. I don’t like mysteries … when I’m coding.