Azure blockchain 新建solidity项目报错

Azure blockchain 新建solidity项目报错

[Execute command] - Setting up box
[Execute command] npm WARN deprecated [email protected]: WARNING: This package has been renamed to @truffle/hdwallet-provider.
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\node\node_global\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command “D:\node\node.exe” “D:\node\node_global\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd e:\contract\test2\node_modules\sha3
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Azure blockchain 新建solidity项目报错_第1张图片

解决方法:
管理员身份运行命令行:

npm install --global --production windows-build-tools
npm install -g node-gyp

解决了
Azure blockchain 新建solidity项目报错_第2张图片

你可能感兴趣的:(区块链,区块链,智能合约开发)