Skip to content

node_modules\bcrypt\lib\binding\bcrypt_lib.node is not a valid Win32 application. #112

Closed

Description

@siddiqlm

I installed bcrypt in my local machine and it is working fine. But when I deployed the files in the Microsoft Azure I am getting the following error

Application has thrown an uncaught exception and is terminated:
Error: \?\D:\home\site\wwwroot\node_modules\bcrypt\lib\binding\bcrypt_lib.node is not a valid Win32 application.

\?\D:\home\site\wwwroot\node_modules\bcrypt\lib\binding\bcrypt_lib.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:717:18)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (D:\home\site\wwwroot\node_modules\bcrypt\bcrypt.js:6:16)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)

Is there any separate brcypt package available to install with 32-bit node?

I am trying to upgrade it to 64-bit node in Microsoft Azure. But no luck so far. So I decided to try install bcypt package for 32-bit node. Could someone help me with this?

Activity

  1. dcodeIO commented on Dec 20, 2019

    @dcodeIO
    Owner

    bcrypt is a native package, while bcryptjs (this package) is pure JS and should work everywhere.

  2. siddiqlm commented on Jan 8, 2020

    @siddiqlm
    Author

    bcryptjs is working great. Thank you so much @dcodeIO .

  3. NutonC commented on Apr 21, 2020

    @NutonC

    how solved brother ....i still not solved

  4. siddiqlm commented on Apr 22, 2020

    @siddiqlm
    Author

    I used 'bcryptjs' module instead of 'bcrypt' module. It just worked fine. What error you are getting?

  5. edelmacias commented on Jun 4, 2020

    @edelmacias

    for anyone having this error, just change
    const bcrypt = require("bcrypt"); for
    const bcrypt = require("bcryptjs");
    and npm i bcryptjs --save

  6. hallonmunken commented on Aug 11, 2020

    @hallonmunken

    const bcrypt = require("bcryptjs");

    Thank you @edelmacias

  7. shajin-sha commented on Aug 24, 2021

    @shajin-sha

    for anyone having this error, just change
    const bcrypt = require("bcrypt"); for
    const bcrypt = require("bcryptjs");
    and npm i bcryptjs --save

    Thank you @edelmacias

  8. gideao-domingos commented on Sep 5, 2021

    @gideao-domingos

    Install
    node-gyp package globally
    npm i -g node-gyp

    and then retry

    npm i bcrypt

    in my case its work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions