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

ERRO AO INSTALAR A PASTA API

gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - "python" is not in PATH or produced an errorgyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python checking if the py launcher can be used to find Python 2 gyp ERR! find Python - "py.exe" is not in PATH or produced an errorgyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python37\python.exe gyp ERR! find Python - "C:\Python37\python.exe" could not be run gyp ERR! find Python gyp ERR! find Python ** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "C:\Path\To\python.exe" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to usegyp ERR! stack at PythonFinder.fail (C:\QA\NODE.JS\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gyp ERR! stack at PythonFinder.runChecks (C:\QA\NODE.JS\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp ERR! stack at PythonFinder. (C:\QA\NODE.JS\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gyp ERR! stack at PythonFinder.execFileCallback (C:\QA\NODE.JS\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:310:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/childprocess.js:273:12) gyp ERR! stack at onErrorNT (internal/child_process.js:467:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21) gyp ERR! System Windows_NT 10.0.18363 gyp ERR! command "C:\QA\NODE.JS\node.exe" "C:\QA\NODE.JS\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\QA\PROTRACTOR\api\node_modules\sqlite3\lib\binding\node-v79-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\QA\PROTRACTOR\api\node_modules\sqlite3\lib\binding\node-v79-win32-x64" "--napi_version=6" "--node_abi_napi=napi" gyp ERR! cwd C:\QA\PROTRACTOR\api\node_modules\sqlite3 gyp ERR! node -v v13.11.0 gyp ERR! node-gyp -v v5.0.7 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\QA\NODE.JS\node.exe C:\QA\NODE.JS\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\QA\PROTRACTOR\api\node_modules\sqlite3\lib\binding\node-v79-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\QA\PROTRACTOR\api\node_modules\sqlite3\lib\binding\node-v79-win32-x64 --napi_version=6 --node_abi_napi=napi' (1) node-pre-gyp ERR! stack at ChildProcess. (C:\QA\PROTRACTOR\api\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1026:16) node-pre-gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/childprocess.js:286:5) node-pre-gyp ERR! System Windows_NT 10.0.18363 node-pre-gyp ERR! command "C:\QA\NODE.JS\node.exe" "C:\QA\PROTRACTOR\api\node_modules\sqlite3\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\QA\PROTRACTOR\api\node_modules\sqlite3 node-pre-gyp ERR! node -v v13.11.0 node-pre-gyp ERR! node-pre-gyp -v v0.9.0 node-pre-gyp ERR! not ok Faile

3 respostas

Fala ai Henrique, tudo bem? Verifique se o projeto possuí um arquivo package-lock.json.

Se sim, apague ele e junto apague a pasta node_modules.

Depois que ambos foram apagados, tente realizar a instalação novamente.

Espero ter ajudado.

solução!

Possui, um video a frente um aluno mostrou a solução...obrigado

Magina Henrique, sempre que precisar não deixe de criar suas dúvidas.

Abraços e bons estudos.

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