Не могу запустить npm install в centOS, проблема с узлом пакета tulind - PullRequest
0 голосов
/ 03 апреля 2019

Я пытаюсь установить узел tulind пакет на моем linux-сервере в CentOS 6.9 производства , однако я не получаю его, я установил все, чтопотребовались python2.7, средства разработки groupinstall и даже node-gyp и node-pre-gyp глобально с npm, и я не могу устранить эту ошибку.

В Windows это работает нормально,потому что я установил windows-build-tools на свой компьютер, теперь на производственном сервере я не могу заставить его работать в CentOS, кто-нибудь может мне помочь, пожалуйста?

Посмотрите огромное сообщение, которое я получаю при запуске npm install:

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://tulipnode.s3.amazonaws.com/tulind/v0.8.15/Release/tulind-v0.8.15-node-v64-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for tulind@0.8.15 and node@10.15.3 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory `/home/vinicius/alvs.vinicius.net/node_modules/tulind/build'
  CXX(target) Release/obj.target/tulind/tulind.o
cc1plus: error: unrecognized command line option "-std=gnu++1y"
make: *** [Release/obj.target/tulind/tulind.o] Error 1
make: Leaving directory `/home/vinicius/alvs.vinicius.net/node_modules/tulind/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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.9.78-xxxx-std-ipv6-64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/vinicius/alvs.vinicius.net/node_modules/tulind/lib/binding/Release/node-v64-linux-x64/tulind.node" "--module_name=tulind" "--module_path=/home/vinicius/alvs.vinicius.net/node_modules/tulind/lib/binding/Release/node-v64-linux-x64" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd /home/vinicius/alvs.vinicius.net/node_modules/tulind
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/vinicius/alvs.vinicius.net/node_modules/tulind/lib/binding/Release/node-v64-linux-x64/tulind.node --module_name=tulind --module_path=/home/vinicius/alvs.vinicius.net/node_modules/tulind/lib/binding/Release/node-v64-linux-x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/vinicius/alvs.vinicius.net/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 4.9.78-xxxx-std-ipv6-64
node-pre-gyp ERR! command "/usr/bin/node" "/home/vinicius/alvs.vinicius.net/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/vinicius/alvs.vinicius.net/node_modules/tulind
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/vinicius/alvs.vinicius.net/node_modules/tulind/lib/binding/Release/node-v64-linux-x64/tulind.node --module_name=tulind --module_path=/home/vinicius/alvs.vinicius.net/node_modules/tulind/lib/binding/Release/node-v64-linux-x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tulind@0.8.15 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tulind@0.8.15 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-04-03T18_11_44_821Z-debug.log
...