无法安装鹰嘴豆泥npm模块

时间:2016-09-08 07:32:07

标签: javascript node.js npm ibm-cloud

我正在尝试安装hummus npm模块。但它给了我一个错误列表。如果我以前安装过,有人可以告诉我导致此问题的原因吗?我使用的是Windows 7。

> C:\Users\hmudunuri\Desktop\encryptionapp>npm install hummus           
> C:\Users\hmudunuri\Desktop\encryptionapp\node_modules\hummus>
> node-pre-gyp install --fallback-to-build node-pre-gyp ERR! stack
> Error: Failed to execute 'C:\Program   Files\nodejs\node.e
>     xe  C:\Users\hmudunuri\Desktop\encryptionapp\node_modules\npm\node_modules\node-g
>     yp\bin\node-gyp.js configure --fallback-to-build -- module=C:\Users\hmudunuri\Des
>     ktop\encryptionapp\node_modules\hummus\binding\hummus.node -- module_name=hummus
>     -- module_path=C:\Users\hmudunuri\Desktop\encryptionapp\node_modules\hummus\bindi
>     ng' (1)
>     node-pre-gyp ERR! stack     at ChildProcess.<anonymous>  (C:\Users\hmudunuri\Desk
>     top\encryptionapp\node_modules\hummus\node_modules\node-pre- gyp\lib\util\compile    .js:83:29)
>     node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
>     node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
>     node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:829:16)
>     node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit  (internal/chi
>     ld_process.js:211:5)
>     node-pre-gyp ERR! System Windows_NT 6.1.7601
>     node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe"   "C:\\Users\\hmud
>     unuri\\Desktop\\encryptionapp\\node_modules\\hummus\\node_modules\\node-pre-
> gyp\    \bin\\node-pre-gyp" "install" "--fallback-to-build"
>     node-pre-gyp ERR! cwd  C:\Users\hmudunuri\Desktop\encryptionapp\node_modules\hummus
>     node-pre-gyp ERR! node -v v4.5.0
>     node-pre-gyp ERR! node-pre-gyp -v v0.6.29
>     node-pre-gyp ERR! not ok
>     Failed to execute 'C:\Program Files\nodejs\node.exe   C:\Users\hmudunuri\Desktop\e
>     ncryptionapp\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js  
> configure --
>     fallback-to-build --  module=C:\Users\hmudunuri\Desktop\encryptionapp\node_modules
>     \hummus\binding\hummus.node --module_name=hummus --   module_path=C:\Users\hmudunur
>     i\Desktop\encryptionapp\node_modules\hummus\binding' (1)
>     npm ERR! Windows_NT 6.1.7601
>     npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program   Files\\nodejs\\
>     node_modules\\npm\\bin\\npm-cli.js" "install" "hummus"
>     npm ERR! node v4.5.0
>     npm ERR! npm  v2.15.9
>     npm ERR! code ELIFECYCLE
>     npm ERR! hummus@1.0.60 install: node-pre-gyp install --fallback-to-build
>     npm ERR! Exit status 1 npm ERR!
>     npm ERR! Failed at the hummus@1.0.60 install script  node-pre-gyp install -- fall
>     back-to-build npm ERR! This is most likely a problem with the hummus package,
>     npm ERR! not with npm itself.
>     npm ERR! Tell the author that this fails on your system:
>     npm ERR!     node-pre-gyp install --fallback-to-build
>     npm ERR! You can get information on how to open an issue for this project  with:
>     npm ERR!     npm bugs hummus
>     npm ERR! Or if that isn't available, you can get their info via:
>     npm ERR!
>     npm ERR!     npm owner ls hummus
>     npm ERR! There is likely additional logging output above. 
>     npm ERR! Please include the following file with any support request: 
>     npm ERR! C:\Users\hmudunuri\Desktop\encryptionapp\npm'

3 个答案:

答案 0 :(得分:0)

您可能遇到基本的本机模块编译问题 按照PC环境的步骤操作: https://github.com/nodejs/node-gyp

再试一次。

答案 1 :(得分:0)

删除并重新安装鹰嘴豆泥。 用npm去除鹰嘴豆泥 并使用npm install hummus安装

答案 2 :(得分:0)

ps aux | less