Boa tarde,
Estou rodando os exercícios no windows 10. Estou com problemas para rodar o servidor JS.
Ao rodar o npm install, obtenho o seguinte log:
D:\Blockchain_test\curso-introducao-blockchain-4.2\curso-introducao-blockchain-4.2\blockchain-api>npm install
> zeromq@4.6.0 install D:\Blockchain_test\curso-introducao-blockchain-4.2\curso-introducao-blockchain-4.2\blockchain-api\node_modules\zeromq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)
prebuild-install info begin Prebuild-install version 2.5.1
prebuild-install info looking for local prebuild @ prebuilds\zeromq-v4.6.0-node-v64-win32-x64.tar.gz
prebuild-install info looking for cached prebuild @ C:\Users\rafael.carvalho\AppData\Roaming\npm-cache\_prebuilds\https-github.com-zeromq-zeromq.js-releases-download-v4.6.0-zeromq-v4.6.0-node-v64-win32-x64.tar.gz
prebuild-install http request GET https://github.com/zeromq/zeromq.js/releases/download/v4.6.0/zeromq-v4.6.0-node-v64-win32-x64.tar.gz
prebuild-install http 404 https://github.com/zeromq/zeromq.js/releases/download/v4.6.0/zeromq-v4.6.0-node-v64-win32-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=10.15.1 runtime=node arch=x64 platform=win32)
Downloading libzmq for Windows
Download finished
D:\Blockchain_test\curso-introducao-blockchain-4.2\curso-introducao-blockchain-4.2\blockchain-api\node_modules\zeromq>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Blockchain_test\curso-introducao-blockchain-4.2\curso-introducao-blockchain-4.2\blockchain-api\node_modules\zeromq
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN blockchain-api@1.0.0 No description
npm WARN blockchain-api@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zeromq@4.6.0 install: `node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zeromq@4.6.0 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! C:\Users\rafael.carvalho\AppData\Roaming\npm-cache\_logs\2019-01-31T18_49_44_701Z-debug.log
Quando tento rodar o servidor node index.js, obtenho o seguinte erro:
D:\Blockchain_test\curso-introducao-blockchain-4.2\curso-introducao-blockchain-4.2\blockchain-api>node index.js
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'sawtooth-sdk'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (D:\Blockchain_test\curso-introducao-blockchain-4.2\curso-introducao-blockchain-4.2\blockchain-api\sawtooth\infra.js:2:20)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
Poderia me ajudar?
At.te, Rafael Carvalho