kelektiv / node.bcrypt.js

bcrypt for NodeJs
MIT License
7.43k stars 510 forks source link

getting this issue when trying to install it using npm #916

Closed ghost closed 1 year ago

ghost commented 2 years ago

npm i bcrypt npm ERR! code 1 npm ERR! path D:\LEARN & PRACTICE\WEB DEVELOPMENT\LEARNING\ANJELA YU BOOTCAMP\32. Authentication & Security\2.1 Secrets - Starting Code\Secrets - Starting Code\node_modules\bcrypt npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build npm ERR! The system cannot find the path specified. npm ERR! The system cannot find the path specified. npm ERR! node:internal/modules/cjs/loader:936 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module 'D:\@mapbox\node-pre-gyp\bin\node-pre-gyp' npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:778:27) npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) npm ERR! at node:internal/main/run_main_module:17:47 { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [] npm ERR! }

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yash\AppData\Local\npm-cache_logs\2022-01-23T19_26_21_637Z-debug.log

Frezeralfred commented 2 years ago

upgrade node to LTS using nvm and also update npm(npm update -g)

recrsn commented 1 year ago

Tracking it here: https://github.com/kelektiv/node.bcrypt.js/issues/961