Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Erro na instalação do projeto

O projeto https://github.com/alberto-alura/projeto-instalura-ssr

Comando npm install

C:\Users\bruno\Desktop\Alura\Projeto Front-end\projeto-instalura-ssr-master\node_modules\fsevents>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" 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:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508: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:152:21)
gyp ERR! System Windows_NT 10.0.18362
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 C:\Users\bruno\Desktop\Alura\Projeto Front-end\projeto-instalura-ssr-master\node_modules\fsevents
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok

> farmhash@1.2.1 install C:\Users\bruno\Desktop\Alura\Projeto Front-end\projeto-instalura-ssr-master\node_modules\farmhash
> node-gyp rebuild

C:\Users\bruno\Desktop\Alura\Projeto Front-end\projeto-instalura-ssr-master\node_modules\farmhash>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" 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:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508: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:152:21)
gyp ERR! System Windows_NT 10.0.18362
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 C:\Users\bruno\Desktop\Alura\Projeto Front-end\projeto-instalura-ssr-master\node_modules\farmhash
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok

Comando npm start

C:\Users\bruno\Desktop\Alura\Projeto Front-end\projeto-instalura-ssr-master>npm start

> instalura-ssr@0.0.1 start C:\Users\bruno\Desktop\Alura\Projeto Front-end\projeto-instalura-ssr-master
> if test "$NODE_ENV" = "production"; then npm run prod; else gulp dev; fi

"$NODE_ENV" was unexpected at this time.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! instalura-ssr@0.0.1 start: `if test "$NODE_ENV" = "production"; then npm run prod; else gulp dev; fi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the instalura-ssr@0.0.1 start 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\bruno\AppData\Roaming\npm-cache\_logs\2020-01-27T20_06_58_079Z-debug.log
3 respostas

Oi Bruno, tudo bem? Verdade, verifiquei o projeto e também encontrei os mesmos problemas. No seu caso, há problemas ligados a uma lib que tenta usar o python para fazer alguma tarefa. Depois desse problema do Python, acredito que acontecerá outros problemas.

O que eu acredito que vamos acabar fazendo é desativar temporariamente o projeto de front-end e criar um novo no futuro.

Meu plano acaba dia 11 de março.

Consegui fazer o projeto funcionar mas sem o Electrode.

solução!

Submete assim mesmo, a gente revisa :)

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software