我正在尝试在Azure上部署一个node.js应用程序。只需将node-modules从我的Mac机上移走并运行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发布于 2018-11-11 20:50:07
您的构建失败,因为它不能构建需要secp256k1原生C模块的tiny-secp256k1模块。
解决方案可能是使用secp256k1-node npm模块。请看一下链接资源库中的windows特定安装说明。
或者简单地安装所需的secp256k1原生C依赖项。
https://stackoverflow.com/questions/53248659
复制相似问题