Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Pacote baixado para instalar API não está funcionando

Fiz download do pacote ".zip" da API que será utilizada a partir do exercício 4 (carregar imagens a partir de uma API) e ao executar NPM INSTALL ocorre o seguinte erro:

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.0/node-v64-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for sqlite3@4.0.0 and node@10.16.3 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 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. (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:282:31 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:21) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\ALURA\ANGULAR\api\node_modules\sqlite3\lib\binding\node-v64-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\ALURA\ANGULAR\api\node_modules\sqlite3\lib\binding\node-v64-win32-x64" "--napi_version=4" "--node_abi_napi=napi" gyp ERR! cwd C:\ALURA\ANGULAR\api\node_modules\sqlite3 gyp ERR! node -v v10.16.3 gyp ERR! node-gyp -v v3.8.0

Há outro pacote desta API que possa fazer downlod ou algum passo que deve ser executado para contornar esse erro?

1 resposta
solução!

Fala ai Eliel, tudo bem? Tente remove a pasta node_modules e o arquivo package-lock.json (se ambos existirem).

Uma vez que nenhum desses dois existem, tente realizar o npm i novamente e depois o npm start.

Espero ter ajudado.