gpt4 book ai didi

node.js - 在 ubuntu ec2 上安装 bcrypt

转载 作者:行者123 更新时间:2023-12-04 19:19:09 25 4
gpt4 key购买 nike

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node- gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:107:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1045:12)
gyp ERR! System Linux 3.2.0-40-virtual
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/grooform/fungroo/node_modules/bcrypt
gyp ERR! node -v v0.11.12
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! bcrypt@0.8.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.0 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.2.0-40-virtual
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/ubuntu/grooform/fungroo
npm ERR! node -v v0.11.12
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!

npm 错误!可以在以下位置找到其他日志记录详细信息:
npm 错误!/home/ubuntu/grooform/fungroo/npm-debug.log
npm 错误!不好的代码 0

我也安装了 libcurl4-openssl-dev 但仍然遇到同样的错误
我也安装了 python 并将 HOME 设置为指向/home/ubuntu

你能帮忙吗..

在新鲜的 UBUNTU 上试用
出现以下错误
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
npm http 304 https://registry.npmjs.org/pause/0.0.1
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-36-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/ubuntu/fungroo/node_modules/bcrypt
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1

最佳答案

nan has issues使用 Node v0.11 不稳定分支的一些(旧)版本,因此您需要升级不稳定 Node 版本(v0.11.14 是撰写本文时的最新版本)或使用稳定版本的 Node (v0.10.33 至这篇文章)。

关于node.js - 在 ubuntu ec2 上安装 bcrypt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26610799/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com