-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm-bcrypt :: Error: Could not locate the bindings file #51
Comments
I already have tried to replace the node/npm version with v0.10.43 from nodejs.org as well as from meteors/node. Not sure what is the problem yet. Any help and idea is welcome. @TPXP any idea? |
How to reconstruct this issue: cd $HOME
meteor create sample
cd sample
meteor add npm-bcrypt
meteor run |
It seems that Node cannot locate Or just go to |
Hi Thomas, thanks for feedback. Both step were done already even that I had solved this type of problem long time ago when applying this lines of code to solve the non-core packages problem. |
So by now, I now how to solve that issue but not why it is not handled automatically? In the above error example, just go into: cd /home/meteor/meteor-1.3.3.1-universal/packages/non-core/npm-bcrypt/.npm/package/node_modules/bcrypt
node-gyp rebuild the node-gyp can be located at meteor be aware to also set I guess it depends on that meteor has decoupled node from the dev_bundle but I have reinvest that for ARM support. Have to check it out there |
Ok, issue is also solved in any case if you run After that every app will get that rebuild. To make sure that your app will be rebuilded too, run once |
Question still left: why isn't this done automatically during first time compile of packages like npm-bcrypt? |
Ok, got the difference! When running
inside the meteor npm install bcrypt@0.8.6 npm WARN cannot run in wd bcrypt@0.8.6 node-gyp rebuild (wd=/home/meteor/meteor-1.3.3.1-universal/packages/non-core/npm-bcrypt/node_modules/bcrypt) bcrypt@0.8.6 node_modules/bcrypt ├── bindings@1.2.1 └── nan@2.2.1 Important is npm WARN cannot run in wd If renaming this folder or doing same somewhere else in the linux system, the output is: > bcrypt@0.8.6 install /home/meteor/meteor-1.3.3.1-universal/packages/non-core/node_modules/bcrypt > node-gyp rebuild make: Entering directory `/home/meteor/meteor-1.3.3.1-universal/packages/non-core/node_modules/bcrypt/build' CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node COPY Release/bcrypt_lib.node make: Leaving directory `/home/meteor/meteor-1.3.3.1-universal/packages/non-core/node_modules/bcrypt/build' bcrypt@0.8.6 node_modules/bcrypt ├── bindings@1.2.1 └── nan@2.2.1 Now to find the reason for that exception |
This error depends on ARM npm 2.15.? (I build, tested and run into error with 2.15.1 and 2.15.8) When using npm@3.9.6 everything is running fine. The problem occurs only if the string
Amazing. I made all the same tests on Ubuntu x86 achitecture with no issue. Amazing 2. After googling the issues: npm/npm#3497 I tried to use Now looking what that mean??? Any help is welcome |
Looking at current master from NPM they changed the parts @codvio mentioned: https://github.com/npm/npm/blob/master/lib/utils/lifecycle.js#L63-L64 So this is possible the best to take as a patch for 2.15.1 included here |
This part of npm is include into node sources, so I will run a fork of node just to patch that part of npm for the meteor fork |
Well, the meteor team probably does not have this issue as they provide prebuilt This issue is strange, I didn't experience it when I had to use the Anyway, I don't think that we should bundle NPMv3 with this project, as even the official NodeJSv4 binary ships with NPMv2. So your patching solution seems to be the most elegant to me. |
@TPXP I can reproduce this problem without any interaction of meteor. Maybe you can try this as well. cd /tmp
mkdir simple-bcrypt
cd simple-bcrypt
npm install bcrypt@0.8.6 When you run this on your ARM board, it should show that "WD Warning" and will not run node-gyp If you name the folder Same to you? |
Strange, I don't have this problem, the commands you gave above work correctly on my board. 😕 Maybe it's a filesystem-related issue ? I'm using ext4 in case it helps. |
Hm ... please check the
and check for the marked lines from above. |
Done! |
I guess meteor calls my system's NPMv3 instead of the one in the dev bundle. Anyway, good work for fixing this bug. 😄 |
Well thats good news :-) so the work seems to be usefull |
With changes to 1.3.4.1 also npm was adjusted to npm@3 so this fix is not necessary anymore. I dropped the branch for 1.3.3.1 as well as the patched node fork. I do not want to be away too much from defaults an third party projects. Please use 1.3.4.1 which is now fully functional |
When trying to run official meteor simple-todos-react with new release-1.3.3.1-universal you will receive following attacheed errors.
Already checked that there are currently a number of similar question around without a solution.
The text was updated successfully, but these errors were encountered: