首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Azure node.js服务上安装bip32时发生生成错误

在Azure node.js服务上安装bip32时发生生成错误
EN

Stack Overflow用户
提问于 2018-11-11 20:15:46
回答 1查看 89关注 0票数 0

我正在尝试在Azure上部署一个node.js应用程序。只需将node-modules从我的Mac机上移走并运行url,结果就是

代码语言:javascript
复制
Error: \\?\D:\home\site\wwwroot\node_modules\scrypt\build\Release\scrypt.node is not a valid Win32 application.

因此,我决定将这些结节直接安装到机器上。我通过ssh'd连接到它并开始安装包。有几个工作得很好,但当尝试安装bip32时,会出现以下堆栈失败。

有什么想法吗?

代码语言:javascript
复制
D:\home\site\wwwroot
gyp ERR! build error 
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\Program Files (x86)\npm\6.1.0\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "D:\\Program Files (x86)\\nodejs\\10.6.0\\node.exe" "D:\\Program Files (x86)\\npm\\6.1.0\\node_modules\\npm\\node_modules\\node- 
gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\home\site\wwwroot\node_modules\tiny-secp256k1
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN Invalid version: "0.2"
npm WARN wwwroot No description
npm WARN wwwroot No repository field.
npm WARN wwwroot No README data
npm WARN wwwroot No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tiny-secp256k1@1.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the tiny-secp256k1@1.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\local\AppData\npm-cache\_logs\2018-11-11T12_02_52_844Z-debug.log
EN

回答 1

Stack Overflow用户

发布于 2018-11-11 20:50:07

您的构建失败,因为它不能构建需要secp256k1原生C模块的tiny-secp256k1模块。

解决方案可能是使用secp256k1-node npm模块。请看一下链接资源库中的windows特定安装说明。

或者简单地安装所需的secp256k1原生C依赖项。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53248659

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档