웹 & 프레임워크

node 및 bcrypt 관련 에러

늘근이 2017. 4. 29. 22:31
npm install -g node-gyp
npm install --g --production windows-build-tools

http://stackoverflow.com/questions/29320201/error-installing-bcrypt-with-npm



Error: Cannot find module 'bcrypt'

    at Function.Module._resolveFilename (module.js:469:15)

    at Function.Module._load (module.js:417:25)

    at Module.require (module.js:497:17)

    at require (internal/module.js:20:19)

    at Object.<anonymous> (D:\Projects\cake-server-master\app\models\user.js:3:14)

    at Module._compile (module.js:570:32)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)

    at Module.require (module.js:497:17)

    at require (internal/module.js:20:19)

    at Object.<anonymous> (D:\Projects\cake-server-master\server.js:10:19)

    at Module._compile (module.js:570:32)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)


npm ERR! Windows_NT 10.0.15063

npm ERR! argv "D:\\IDE\\node\\node.exe" "D:\\IDE\\node\\node_modules\\npm\\bin\\npm-cli.js" "start"

npm ERR! node v6.10.2

npm ERR! npm  v3.10.10