Я пытаюсь установить аэродинамический модуль npm v 1.0.21, используя npm install [email protected]
, однако я получаю полушифрованное сообщение об ошибке. Я попытался установить несколько версий Aerospike C Library и несколько версий узла (от 0.10.22 до 0.10.38 до последнего) без везения. Это на os x 10.9. Каждая нить предлагала установить lua или использовать разные версии библиотеки Aaerospike C.npm aerospike install issue
isaacs-computer:Desktop isaac$ npm install [email protected]
/
> [email protected] install /Users/isaac/Desktop/node_modules/aerospike
> node-gyp rebuild
ACTION binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh aerospike-client-c/lib/libaerospike.a
info: downloading 'http://www.aerospike.com/download/client/c/latest/artifact/mac' to '/Users/isaac/Desktop/node_modules/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 344 100 344 0 0 548 0 --:--:-- --:--:-- --:--:-- 548
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 346 100 346 0 0 420 0 --:--:-- --:--:-- --:--:-- 420
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 16.7M 100 16.7M 0 0 1900k 0 0:00:09 0:00:09 --:--:-- 3144k
info: extracting 'aerospike-client-c-3.1.18.mac.x86_64/aerospike-client-c-devel-3.1.18.pkg' from 'aerospike-client-c.tgz'
info: extracting files from 'aerospike-client-c-3.1.18.mac.x86_64/aerospike-client-c-devel-3.1.18.pkg'
8173 blocks
CHECK
[✓] /Users/isaac/Desktop/node_modules/aerospike/aerospike-client-c/package/usr/local/lib/libaerospike.a
[✓] /Users/isaac/Desktop/node_modules/aerospike/aerospike-client-c/package/usr/local/include/aerospike/aerospike.h
[✓] /Users/isaac/Desktop/node_modules/aerospike/aerospike-client-c/package/usr/local/aerospike/client/sys/udf/lua/aerospike.lua
TOUCH Release/obj.target/aerospike-client-c.stamp
CXX(target) Release/obj.target/aerospike/src/main/aerospike.o
CXX(target) Release/obj.target/aerospike/src/main/client.o
In file included from ../src/main/client.cc:27:
In file included from ../src/main/util/conversions.h:30:
../aerospike-client-c/include/aerospike/aerospike_batch.h:193:9: error: cannot
initialize return object of type 'as_batch_read_record *' (aka
'as_batch_read_record_s *') with an rvalue of type 'void *'
return as_vector_reserve(&records->list);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/aerospike/src/main/client.o] Error 1
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.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/isaac/Desktop/node_modules/aerospike
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.1
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 aerospike 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 aerospike
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.4.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "[email protected]"
npm ERR! cwd /Users/isaac/Desktop
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Любая конкретная причина, по которой вы хотите версию 1.0.21? Самый последний - 1.0.47, который отлично подходит для меня (10.10.4), тогда как 1.0.21 не выполняет (компилирует также проблемы). – robertklep
Моя компания использует 1.0.21 в производстве. Последняя версия аэросейсмических компиляторов отлично подходит и для меня. Для тестирования у меня есть аэрокосмический коммутатор до 1.0.27 (самый близкий к 1.0.21, который я мог бы скомпилировать), однако я бы очень хотел разобраться, почему 1.0.21 не устанавливается, тем более, что 1.0.21 успешно установил 32 дня назад, когда я последний раз запускал npm install. – isaac9A
Похоже, что клиент, который загружается, не является версией вообще, а это означает, что он всегда загружает последнюю/текущую версию клиента, которая не обязательно соответствует версии, ожидаемой модулем узла. – robertklep