npm error code 1
npm error path C:UsersHPRepocloneHostelbackendnode_modulesbcrypt
npm error command failed
npm error command C:Windowssystem32cmd.exe /d /s /c node-pre-gyp install –fallback-to-build
npm error Failed to execute ‘C:Program Files (x86)nodejsnode.exe C:UsersHPAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure –fallback-to-build –module=C:UsersHPRepocloneHostelbackendnode_modulesbcryptlibbindingnapi-v3bcrypt_lib.node –module_name=bcrypt_lib –module_path=C:UsersHPRepocloneHostelbackendnode_modulesbcryptlibbindingnapi-v3 –napi_version=9 –node_abi_napi=napi –napi_build_version=3 –node_napi_label=napi-v3’ (1)
npm error node-pre-gyp info it worked if it ends with ok
npm error node-pre-gyp info using [email protected]
npm error node-pre-gyp info using [email protected] | win32 | ia32
npm error node-pre-gyp info check checked for “C:UsersHPRepocloneHostelbackendnode_modulesbcryptlibbindingnapi-v3bcrypt_lib.node” (not found)
npm error node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-win32-ia32-unknown.tar.gz
npm error node-pre-gyp ERR! install response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-win32-ia32-unknown.tar.gz
npm error node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp)
npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-win32-ia32-unknown.tar.gz
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | ia32
npm error gyp info ok
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | ia32
npm error gyp info find Python using Python version 3.12.3 found at “C:Program FilesPython312python.exe”
npm error gyp ERR! find VS
npm error gyp ERR! find VS msvs_version not set from command line or npm config
npm error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with ‘–loglevel silly’ for more details.
npm error gyp ERR! find VS
npm error gyp ERR! find VS Failure details: undefined
npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with ‘–loglevel silly’ for more details.
npm error gyp ERR! find VS
npm error gyp ERR! find VS Failure details: undefined
npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with ‘–loglevel silly’ for more details.
npm error gyp ERR! find VS
npm error gyp ERR! find VS Failure details: undefined
npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with ‘–loglevel silly’ for more details.
npm error gyp ERR! find VS
npm error gyp ERR! find VS Failure details: undefined
npm error gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18
npm error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm error gyp ERR! find VS
npm error gyp ERR! find VS **************************************************************
npm error gyp ERR! find VS You need to install the latest version of Visual Studio
npm error gyp ERR! find VS including the “Desktop development with C++” workload.
npm error gyp ERR! find VS For more information consult the documentation at:
npm error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm error gyp ERR! find VS **************************************************************
npm error gyp ERR! find VS
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm error gyp ERR! stack at VisualStudioFinder.fail (C:UsersHPAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:116:11)
npm error gyp ERR! stack at VisualStudioFinder.findVisualStudio (C:UsersHPAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:72:17)
npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm error gyp ERR! stack at async createBuildDir (C:UsersHPAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibconfigure.js:95:26)
npm error gyp ERR! stack at async run (C:UsersHPAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js:81:18)
npm error gyp ERR! System Windows_NT 10.0.22631
npm error gyp ERR! command “C:Program Files (x86)nodejsnode.exe” “C:UsersHPAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js” “configure” “–fallback-to-build” “–module=C:UsersHPRepocloneHostelbackendnode_modulesbcryptlibbindingnapi-v3bcrypt_lib.node” “–module_name=bcrypt_lib” “–module_path=C:UsersHPRepocloneHostelbackendnode_modulesbcryptlibbindingnapi-v3” “–napi_version=9” “–node_abi_napi=napi” “–napi_build_version=3” “–node_napi_label=napi-v3”
npm error gyp ERR! cwd C:UsersHPRepocloneHostelbackendnode_modulesbcrypt
npm error gyp ERR! node -v v20.11.1
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error node-pre-gyp ERR! build error
npm error node-pre-gyp ERR! stack Error: Failed to execute ‘C:Program Files (x86)nodejsnode.exe C:UsersHPAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure –fallback-to-build –module=C:UsersHPRepocloneHostelbackendnode_modulesbcryptlibbindingnapi-v3bcrypt_lib.node –module_name=bcrypt_lib –module_path=C:UsersHPRepocloneHostelbackendnode_modulesbcryptlibbindingnapi-v3 –napi_version=9 –node_abi_napi=napi –napi_build_version=3 –node_napi_label=napi-v3’ (1)
npm error node-pre-gyp ERR! stack at ChildProcess. (C:UsersHPRepocloneHostelbackendnode_modules@mapboxnode-pre-gyplibutilcompile.js:89:23)
npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm error node-pre-gyp ERR! System Windows_NT 10.0.22631
npm error node-pre-gyp ERR! command “C:Program Files (x86)nodejsnode.exe” “C:UsersHPRepocloneHostelbackendnode_modules@mapboxnode-pre-gypbinnode-pre-gyp” “install” “–fallback-to-build”
npm error node-pre-gyp ERR! cwd C:UsersHPRepocloneHostelbackendnode_modulesbcrypt
npm error node-pre-gyp ERR! node -v v20.11.1
npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm error node-pre-gyp ERR! not ok
npm error A complete log of this run can be found in: C:UsersHPAppDataLocalnpm-cache_logs2024-06-08T08_48_21_134Z-debug-0.log
this is showing up upon installing bcrypt module , i have tried everything from installing python to running the windows build tool kit command , npm cache clear nothing seems to work
Dikshit Dhar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.