2016-11-03 9 views
0

Я запускаю vagrantbento/centos-6.7 box. Мой узел версия v6.9.1 и мой npm версия is 3.10.8. Когда я бегу npm install [email protected] я получаю следующее сообщение об ошибке: были установленыNPM erros при установке зомби 4.2.1 на Centos 6.7

node-gyp rebuild 

make: Entering directory `/home/vagrant/zombie-test/node_modules/bufferutil/build' 
    CXX(target) Release/obj.target/bufferutil/src/bufferutil.o 
In file included from ../src/bufferutil.cc:16: 
../../nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler 
In file included from ../src/bufferutil.cc:7: 

/* stack trace */ 

make: Leaving directory `/home/vagrant/zombie-test/node_modules/bufferutil/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:276:23) 
gyp ERR! stack  at emitTwo (events.js:106:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:191:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 
gyp ERR! System Linux 2.6.32-573.el6.x86_64 
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /home/vagrant/zombie-test/node_modules/bufferutil 
gyp ERR! node -v v6.9.1 
gyp ERR! node-gyp -v v3.4.0 
gyp ERR! not ok 

Full stack trace here

Оба узла и NPM с помощью this instructions:

$ curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - 
$ yum -y install nodejs 

Любые известные решения этой ошибки?

ответ

1

Вам понадобится более новая версия gcc/g ++ (тот, который поставляется с CentOS6, слишком старый). Взгляните на это: http://linux.web.cern.ch/linux/devtoolset/ - где вы можете обновить строительные инструменты до достойных/последних версий.

 Смежные вопросы

  • Нет связанных вопросов^_^