windows8.1操作系统, 64位;
npm install ffi
ffi模块无法安装上,到底是什么原因呢?
E:\Program Files\nodejs>npm install ffi
\
> [email protected] install E:\Program Files\nodejs\node_modules\ffi
> node-gyp rebuild
E:\Program Files\nodejs\node_modules\ffi>node "E:\Program Files\nodejs\node_mod
les\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp: C:\Users\NETP\.node-gyp\0.10.32\common.gypi not found (cwd: E:\Program
iles\nodejs\node_modules\ffi) while reading includes of binding.gyp while tryin
to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (E:\Program Files\nodejs\node_modul
s\npm\node_modules\node-gyp\lib\configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "E:\\Program Files\\nodejs\\node_modules\\npm\\node_mod
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\Program Files\nodejs\node_modules\ffi
gyp ERR! node -v v0.10.32
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 ffi 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 ffi
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "E:\\Program Files\\nodejs\\\\node.exe" "E:\\Program Files\\no
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ffi"
npm ERR! cwd E:\Program Files\nodejs
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
希望大牛指点迷津,谢谢了!
4 回复