Ich habe versucht, bcrypt
in Ubuntu installieren, aber folgenden Fehler erhalten. Ich kann Fehlermeldungen nicht richtig verstehen. Hier ist eine Diskussion über das gleiche Problem: https://github.com/ncb000gt/node.bcrypt.js/issues/90 aber immer noch keine Lösung gefunden.bcrypt nicht auf Ubuntu installieren
Ich habe auch versucht, npm (npm install -g npm
) zu aktualisieren und die Installation des bcrypt ohne Glück.
[email protected]:~/Documents/xpressnepal$ sudo npm install
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
> [email protected] install /home/isha/Documents/xpressnepal/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:65:16)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:150:20)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:93:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:694:7)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:107:17)
gyp ERR! stack at maybeClose (child_process.js:817:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:884:5)
gyp ERR! System Linux 3.8.0-19-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/isha/Documents/xpressnepal/node_modules/bcrypt
gyp ERR! node -v v0.11.11-pre
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
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 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.8.0-19-generic
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/isha/Documents/xpressnepal
npm ERR! node -v v0.11.11-pre
npm ERR! npm -v 1.3.26
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/isha/Documents/xpressnepal/npm-debug.log
npm ERR! not ok code 0
[email protected]:~/Documents/xpressnepal$
ist es Ihnen möglich, eine 'stabile' Version von node.js zu benutzen? Sie sollten auch versuchen, das 'bcrypt'-Paket lokal anstatt global zu installieren. Es kann sein, dass Ihnen einige Bibliotheken fehlen, die 'bcrypt' benötigt. Http://StackOverflow.com/a/20895568/732396 – yanhan
@yanan vielen Dank, ich werde dieses Problem nach der Installation der stabilen Version des Knotens los, wie Sie vorgeschlagen. – Isha
gut zu wissen, dass Sie Ihr Problem gelöst haben. Ich habe meinen Kommentar als Antwort hinzugefügt; Wenn Sie freundlich genug sind, um mir die Antwort zu vergeben, danke ich Ihnen im Voraus – yanhan