最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Unable to install hummus npm module - Stack Overflow

programmeradmin0浏览0评论

I was trying to install hummus npm module. But it is giving me a list of errors. Can someone tell me what causes this issue if I have installed before? I am using 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\pile    .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! mand "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! [email protected] install: node-pre-gyp install --fallback-to-build
>     npm ERR! Exit status 1 npm ERR!
>     npm ERR! Failed at the [email protected] 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'

I was trying to install hummus npm module. But it is giving me a list of errors. Can someone tell me what causes this issue if I have installed before? I am using 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\pile    .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! mand "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! [email protected] install: node-pre-gyp install --fallback-to-build
>     npm ERR! Exit status 1 npm ERR!
>     npm ERR! Failed at the [email protected] 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'
Share Improve this question edited Sep 8, 2016 at 21:21 ralphearle 1,69413 silver badges18 bronze badges asked Sep 8, 2016 at 7:32 H VarmaH Varma 7385 gold badges14 silver badges29 bronze badges 2
  • Have you set the msvs_version property? – N.J.Dawson Commented Sep 8, 2016 at 21:26
  • have you tried npm install hummus --no-bin-links – chiliNUT Commented Sep 20, 2016 at 5:42
Add a ment  | 

4 Answers 4

Reset to default 1

Remove and reinstall hummus. remove with

npm remove hummus

and install with

npm install hummus

You might be running into basic native module pilation issues.
Follow the steps for PC environment in: https://github./nodejs/node-gyp

and try again.

sudo npm i hummus --unsafe-perm 
sudo npm i hummus-recipe --unsafe-perm

If it's an existing project check the version of hummus in package.json. In my case the project was locked at 1.0.107, which didn't install and errored in similar fashion to OP's question.

Pointing at the latest (1.0.110 at the time of writing), did the trick.

发布评论

评论列表(0)

  1. 暂无评论