error in installing hiredis through npm

Mohit

I am trying to install hiredis through npm and it is giving error as

  npm  install hiredis redis

  npm http GET https://registry.npmjs.org/redis
  npm http GET https://registry.npmjs.org/hiredis
  npm http 304 https://registry.npmjs.org/hiredis
  npm http 304 https://registry.npmjs.org/redis
  npm http GET https://registry.npmjs.org/bindings
  npm http 304 https://registry.npmjs.org/bindings

  > [email protected] install /home/mohit/node_modules/hiredis
  > node-gyp rebuild

  make: Entering directory `/home/mohit/node_modules/hiredis/build'
  CC(target) Release/obj.target/hiredis/deps/hiredis/hiredis.o
  CC(target) Release/obj.target/hiredis/deps/hiredis/net.o
  CC(target) Release/obj.target/hiredis/deps/hiredis/sds.o
  CC(target) Release/obj.target/hiredis/deps/hiredis/async.o
  AR(target) Release/obj.target/deps/hiredis.a
  COPY Release/hiredis.a
  CXX(target) Release/obj.target/hiredis/src/hiredis.o
  make: g++: Command not found
  make: *** [Release/obj.target/hiredis/src/hiredis.o] Error 127
  make: Leaving directory `/home/mohit/node_modules/hiredis/build'
  gyp ERR! build error 
  gyp ERR! stack Error: `make` failed with exit code: 2
  gyp ERR! stack     at ChildProcess.onExit     
  (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
  gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
  gyp ERR! System Linux 3.2.0-23-generic
  gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-        
  gyp.js" "rebuild"
  gyp ERR! cwd /home/mohit/node_modules/hiredis
  gyp ERR! node -v v0.10.28
  gyp ERR! node-gyp -v v0.13.0
  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 hiredis 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 hiredis
  npm ERR! There is likely additional logging output above.

  npm ERR! System Linux 3.2.0-23-generic
  npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "hiredis" "redis"
  npm ERR! cwd /home/mohit
  npm ERR! node -v v0.10.28
  npm ERR! npm -v 1.4.9
  npm ERR! code ELIFECYCLE
  npm ERR! 
  npm ERR! Additional logging details can be found in:
  npm ERR!     /home/mohit/npm-debug.log
  npm ERR! not ok code 0

this may be a possible duplicate of

Hiredis installing error using NPM

but that question been not answered and is not clear

Ben

The error seems to be finding c/c++ compiler problem.

make: g++: Command not found

It could be g++ is not installed or not in the path where make command can find.

Do "which g++" from the prompt and see where it is.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Error installing bcrypt with NPM in meteor

来自分类Dev

通过npm安装hiredis时出错

来自分类Dev

通过npm安装hiredis时出错

来自分类Dev

Installing ruby gems in a npm project

来自分类Dev

如何停止hiredis命令?

来自分类Dev

hiredis 使用 TLS 失败

来自分类Dev

Best Approach to installing Node.js/npm without sudo

来自分类Dev

npm and bower installing only end-user/production files

来自分类Dev

npm install error from the terminal

来自分类Dev

Installing lattice in R: "Error : Invalid DESCRIPTION file"

来自分类Dev

Error installing DocPad 6.53 on Windows 7

来自分类Dev

error with installing odeint <boost/config.hpp>

来自分类Dev

Error in installing lumx angular material design framework?

来自分类Dev

Nodejs and npm error. modules missing

来自分类Dev

npm publish error断言失败:(编码== BINARY)

来自分类Dev

运行测试时出现npm error ELIFECYCLE

来自分类Dev

error installing numpy via homebrew in Mac OSX 10.9

来自分类Dev

Error installing ruby-1.9.3-p547 with RVM on osx 10.9.3

来自分类Dev

Error when installing "Maven Integration for Eclipse (Juno and newer)" in Eclipse Kepler

来自分类Dev

Error while installing Apache; error is "E: Sub-process /usr/bin/dpkg returned an error code (1)"

来自分类Dev

hiredis“未定义的引用”编译器错误

来自分类Dev

使用OpsWorks在AWS Linux上安装hiredis的问题

来自分类Dev

Redis命令ERR:参数数量不正确hiredis

来自分类Dev

使用hiredis通过一个呼叫发送多个记录

来自分类Dev

尝试通过 React 访问 Redis:无法解析“hiredis”

来自分类Dev

hiredis redisCommand为Raspberry Pi 4上的所有内容返回null

来自分类Dev

高效处理为redis(hiredis)的SET命令创建模板的过程

来自分类Dev

Installing Groovy

来自分类Dev

反应error-error:这可能不是npm的问题。上面可能还有其他日志记录输出

Related 相关文章

  1. 1

    Error installing bcrypt with NPM in meteor

  2. 2

    通过npm安装hiredis时出错

  3. 3

    通过npm安装hiredis时出错

  4. 4

    Installing ruby gems in a npm project

  5. 5

    如何停止hiredis命令?

  6. 6

    hiredis 使用 TLS 失败

  7. 7

    Best Approach to installing Node.js/npm without sudo

  8. 8

    npm and bower installing only end-user/production files

  9. 9

    npm install error from the terminal

  10. 10

    Installing lattice in R: "Error : Invalid DESCRIPTION file"

  11. 11

    Error installing DocPad 6.53 on Windows 7

  12. 12

    error with installing odeint <boost/config.hpp>

  13. 13

    Error in installing lumx angular material design framework?

  14. 14

    Nodejs and npm error. modules missing

  15. 15

    npm publish error断言失败:(编码== BINARY)

  16. 16

    运行测试时出现npm error ELIFECYCLE

  17. 17

    error installing numpy via homebrew in Mac OSX 10.9

  18. 18

    Error installing ruby-1.9.3-p547 with RVM on osx 10.9.3

  19. 19

    Error when installing "Maven Integration for Eclipse (Juno and newer)" in Eclipse Kepler

  20. 20

    Error while installing Apache; error is "E: Sub-process /usr/bin/dpkg returned an error code (1)"

  21. 21

    hiredis“未定义的引用”编译器错误

  22. 22

    使用OpsWorks在AWS Linux上安装hiredis的问题

  23. 23

    Redis命令ERR:参数数量不正确hiredis

  24. 24

    使用hiredis通过一个呼叫发送多个记录

  25. 25

    尝试通过 React 访问 Redis:无法解析“hiredis”

  26. 26

    hiredis redisCommand为Raspberry Pi 4上的所有内容返回null

  27. 27

    高效处理为redis(hiredis)的SET命令创建模板的过程

  28. 28

    Installing Groovy

  29. 29

    反应error-error:这可能不是npm的问题。上面可能还有其他日志记录输出

热门标签

归档