Skip to content

unable to install ldapauth getting error #6

@DineshPatri

Description

@DineshPatri

trying to install ldapauth using "npm install ldapauth" but i am getting the below error

ldapauth\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\Vbrick\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\Vbrick\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. blowfish.cc bcrypt.cc bcrypt_node.cc win_delay_load_hook.cc c:\program files\vbrick\nodejs\node_modules\ldapauth\node_modules\nan\nan_maybe_43_inl.h(88): error C2039: 'ForceSet': is not a member of 'v8::Object' (compiling source file ..\src\bcrypt_node.cc) [C:\Program Files\Vbrick\nodejs\node_mo dules\ldapauth\node_modules\bcrypt\build\bcrypt_lib.vcxproj] .... .... (compiling source file ..\src\bcrypt_node.cc) gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exefailed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\Vbrick\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Windows_NT 10.0.18363 gyp ERR! command "C:\\Program Files\\Vbrick\\nodejs\\node.exe" "C:\\Program Files\\Vbrick\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Program Files\Vbrick\nodejs\node_modules\ldapauth\node_modules\bcrypt gyp ERR! node -v v10.16.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install:node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DP052402\AppData\Roaming\npm-cache_logs\2020-07-20T18_14_23_665Z-debug.log
`

Couple of solutions i tried is to downgrade the node version, is this the solution?cant i upgrade node. current version is 10.16.0
#re install node
npm install -g [email protected] - but this is not affecting the node version, when verified with node -v.

Please suggest a solution to get this working.

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