lienma / UpsBoard

Usenet + plex + Stats Board, allows you to monitor your usenet services (SABnzbd+, Sick Beard, & CouchPotato), Plex, & your system (CPU Usage, Memory Usage, Bandwidth Usage, & Disk Space Usage)
MIT License
19 stars 3 forks source link

Bcrypt Error #10

Closed wieseljonas closed 10 years ago

wieseljonas commented 10 years ago

I get this error when trying to start the app:

Error: Cannot find module 'bcrypt' at Function.Module._resolveFilename (module.js:331:15) at Function.Module._load (module.js:273:25) at Module.require (module.js:357:17) at require (module.js:373:17) at Object. (/home/Programs/UpsBoard/app.js:12:16) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:349:32) at Function.Module._load (module.js:305:12) at Function.Module.runMain (module.js:490:10)

and when trying to do: npm install bcrypt I get this error.

npm http GET https://registry.npmjs.org/bcrypt/0.7.7 npm http 304 https://registry.npmjs.org/bcrypt/0.7.7 npm http GET https://registry.npmjs.org/bindings/1.0.0 npm http 304 https://registry.npmjs.org/bindings/1.0.0

bcrypt@0.7.7 install /home/Programs/UpsBoard/node_modules/bcrypt node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:66:16) gyp ERR! stack at Object.self.commands.(anonymous function) as install gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:152:20) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:95:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:719:7) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:110:17) gyp ERR! stack at maybeClose (child_process.js:991:16) gyp ERR! stack at Socket. (child_process.js:1141:11) gyp ERR! stack at Socket.EventEmitter.emit (events.js:107:17) gyp ERR! stack at Pipe.close (net.js:461:12) gyp ERR! System Linux 3.13.7-x86_64-linode38 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/Programs/UpsBoard/node_modules/bcrypt gyp ERR! node -v v0.11.13-pre gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm ERR! bcrypt@0.7.7 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@0.7.7 install script. npm ERR! This is most likely a problem with the bcrypt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls bcrypt npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.7-x86_64-linode38 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "bcrypt" npm ERR! cwd /home/Programs/UpsBoard npm ERR! node -v v0.11.13-pre npm ERR! npm -v 1.4.6 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/Programs/UpsBoard/npm-debug.log npm ERR! not ok code 0

Any ideas how to fix this?

TwinMist commented 10 years ago

try a npm cache clean delete the node_modules folder then install again npm install

wieseljonas commented 10 years ago

In the reinstall I get the same error in the install process:

npm ERR! bcrypt@0.7.7 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@0.7.7 install script. npm ERR! This is most likely a problem with the bcrypt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls bcrypt npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.7-x86_64-linode38 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! cwd /home/Programs/UpsBoard npm ERR! node -v v0.11.13-pre npm ERR! npm -v 1.4.6 npm ERR! code ELIFECYCLE

lienma commented 10 years ago

In my next release, I'll be switching from bcrypt to bcrypt-nodejs which does not require the user to build bcrypt. I should have it ready later today.

wieseljonas commented 10 years ago

Ok thank you for your work :)!

TwinMist commented 10 years ago

was ok before now getting Error: Cannot find module 'bcrypt-nodejs' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/opt/UpsBoard/app.js:12:16) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10)

lienma commented 10 years ago

Please run these two commands. I removed the bcrypt module so new user don't have problems install bcrypt module.

npm uninstall bcrypt
npm install bcrypt-nodejs