如何npm install ffi
install 不了?求解,拜谢
2 回复
有什么提示?
MacOSX 下安装正常。
$ npm install ffi
npm http GET https://registry.npmjs.org/ffi
npm http 200 https://registry.npmjs.org/ffi
npm http GET https://registry.npmjs.org/ffi/-/ffi-1.2.7.tgz
npm http 200 https://registry.npmjs.org/ffi/-/ffi-1.2.7.tgz
npm http GET https://registry.npmjs.org/ref
npm http GET https://registry.npmjs.org/ref-struct
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/debug/-/debug-2.0.0.tgz
npm http 200 https://registry.npmjs.org/ref-struct
npm http GET https://registry.npmjs.org/ref-struct/-/ref-struct-0.0.6.tgz
npm http 200 https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz
npm http 200 https://registry.npmjs.org/ref
npm http GET https://registry.npmjs.org/ref/-/ref-0.3.2.tgz
npm http 200 https://registry.npmjs.org/debug/-/debug-2.0.0.tgz
npm http 200 https://registry.npmjs.org/ref-struct/-/ref-struct-0.0.6.tgz
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz
npm http 200 https://registry.npmjs.org/ref/-/ref-0.3.2.tgz
npm http GET https://registry.npmjs.org/ms/0.6.2
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/ms/0.6.2
npm http 200 https://registry.npmjs.org/nan
> ref@0.3.2 install /Users/yliu0/git/leapbase/site/node_modules/ffi/node_modules/ref
> node-gyp rebuild
CXX(target) Release/obj.target/binding/src/binding.o
SOLINK_MODULE(target) Release/binding.node
SOLINK_MODULE(target) Release/binding.node: Finished
> ffi@1.2.7 install /Users/yliu0/git/leapbase/site/node_modules/ffi
> node-gyp rebuild
CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o
CC(target) Release/obj.target/ffi/deps/libffi/src/types.o
CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin64.o
LIBTOOL-STATIC Release/libffi.a
CXX(target) Release/obj.target/ffi_bindings/src/ffi.o
CXX(target) Release/obj.target/ffi_bindings/src/callback_info.o
CXX(target) Release/obj.target/ffi_bindings/src/threaded_callback_invokation.o
SOLINK_MODULE(target) Release/ffi_bindings.node
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
SOLINK_MODULE(target) Release/ffi_bindings.node: Finished
ffi@1.2.7 node_modules/ffi
├── bindings@1.2.1
├── debug@2.0.0 (ms@0.6.2)
├── ref-struct@0.0.6 (debug@1.0.4)
└── ref@0.3.2 (debug@1.0.4, nan@1.2.0)