我正在尝试在node.js
上部署Azure
应用。只需从Mac中移出node-modules
并运行url
即可得到
Error: \\?\D:\home\site\wwwroot\node_modules\scrypt\build\Release\scrypt.node is not a valid Win32 application.
因此,我决定将结节直接安装在机器上。我ssh'd
到它并开始安装软件包。一对夫妇工作良好,但尝试安装bip32
时失败,并显示以下堆栈。
有什么想法吗?
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
答案 0 :(得分:-1)
您的构建失败,因为它无法构建secp256k1本机C模块的tiny-secp256k1
模块。
解决方案可能是改为使用secp256k1-node npm模块。看看链接的仓库中特定于Windows的安装说明。
或仅安装必需的secp256k1本机C依赖项。