Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/414.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 无法安装hummus npm模块_Javascript_Node.js_Npm_Ibm Cloud - Fatal编程技术网

Javascript 无法安装hummus npm模块

Javascript 无法安装hummus npm模块,javascript,node.js,npm,ibm-cloud,Javascript,Node.js,Npm,Ibm Cloud,我试图安装hummus npm模块。但它给了我一个错误清单。如果我以前安装过,有人能告诉我是什么导致此问题吗?我正在使用Windows7 > C:\Users\hmudunuri\Desktop\encryptionapp>npm install hummus > C:\Users\hmudunuri\Desktop\encryptionapp\node_modules\hummus> > node-pre-gyp install --fall

我试图安装hummus npm模块。但它给了我一个错误清单。如果我以前安装过,有人能告诉我是什么导致此问题吗?我正在使用Windows7

> 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'
>C:\Users\hmudunuri\Desktop\encryptionapp>npm安装hummus
>C:\Users\hmudunuri\Desktop\encryptionapp\node\u modules\hummus>
>node pre gyp安装--回退以生成node pre gyp错误!堆栈
>错误:无法执行'C:\Program Files\nodejs\node.e'
>xe C:\Users\hmudunuri\Desktop\encryptionapp\node\u modules\npm\node\u modules\node-g
>yp\bin\node-gyp.js configure--回退到构建--module=C:\Users\hmudunuri\Des
>ktop\encryptionapp\node\u modules\hummus\binding\hummus.node--module\u name=hummus
>--module\u path=C:\Users\hmudunuri\Desktop\encryptionapp\node\u modules\hummus\bindi
>ng'(1)
>节点前gyp错误!在子进程中进行堆栈。(C:\Users\hmudunuri\Desk
>top\encryptionapp\node\u modules\hummus\node\u modules\node pre-gyp\lib\util\compile.js:83:29)
>节点前gyp错误!在emitTwo处堆栈(events.js:87:13)
>节点前gyp错误!ChildProcess.emit处的堆栈(events.js:172:7)
>节点前gyp错误!maybeClose的堆栈(内部/子进程js:829:16)
>节点前gyp错误!在Process.ChildProcess.\u handle.onexit(内部/chi)处堆栈
>ld_process.js:211:5)
>节点前gyp错误!系统Windows\u NT 6.1.7601
>节点前gyp错误!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Users\\hmud
>unuri\\Desktop\\encryptionapp\\node\u modules\\hummus\\node\u modules\\node pre-
>gyp\\bin\\node-pre-gyp“安装”--回退到生成
>节点前gyp错误!cwd C:\Users\hmudunuri\Desktop\encryptionapp\node\u modules\hummus
>节点前gyp错误!节点-v4.5.0
>节点前gyp错误!gyp前节点-v v0.6.29
>节点前gyp错误!不好
>无法执行“C:\Program Files\nodejs\node.exe C:\Users\hmudunuri\Desktop\e”
>ncryptionapp\node\u modules\npm\node\u modules\node gyp\bin\node-gyp.js
>配置--
>回退到构建--module=C:\Users\hmudunuri\Desktop\encryptionapp\node\u modules
>\hummus\binding\hummus.node--module\u name=hummus--module\u path=C:\Users\hmudunur
>i\Desktop\encryptionapp\node\u modules\hummus\binding'(1)
>npm错误!Windows NT 6.1.7601
>npm错误!argv“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\
>node\u modules\\npm\\bin\\npm cli.js“安装”hummus
>npm错误!节点v4.5.0
>npm错误!npm v2.15.9
>npm错误!代码失效循环
>npm错误!hummus@1.0.60安装:节点预gyp安装--回退到构建
>npm错误!退出状态1 npm错误!
>npm错误!失败hummus@1.0.60安装脚本节点gyp安装前--秋季
>返回构建npm错误!这很可能是hummus套装的问题,
>npm错误!与npm本身无关。
>npm错误!告诉作者此操作在您的系统上失败:
>npm错误!节点预gyp安装--回退到构建
>npm错误!您可以通过以下方式获取有关如何打开此项目问题的信息:
>npm错误!鹰嘴豆泥
>npm错误!或者,如果不可用,您可以通过以下方式获取他们的信息:
>npm错误!
>npm错误!npm所有者ls hummus
>npm错误!上面可能还有其他日志输出。
>npm错误!请在任何支持请求中包括以下文件:
>npm错误!C:\Users\hmudunuri\Desktop\encryptionapp\npm'

您可能会遇到基本的本机模块编译问题。
请按照以下步骤操作PC环境:


然后重试。

卸下并重新安装hummus。 除去

npm remove hummus
并与一起安装

npm install hummus

您是否设置了msvs_version属性?您是否尝试过
npm安装hummus--无bin链接
sudo npm i hummus --unsafe-perm 
sudo npm i hummus-recipe --unsafe-perm