Prezado, Estou tendo problemas para instalar o servidor e prosseguir com realização do curso. Ao digitar o comando npm install o processo não consegue concluir a instalação do sqllite3. Pelo que identifiquei no log, o processo de instalação faz referente ao Python. Preciso ter o Python instalado na minha máquina ? Caso afirmativo, qual versão seria ? Tem alguma outra forma de baixar o sqllite3 ? OBS: Esse erro abaixo eu obtive tanto na minha máquina do trabalho quanto na minha máquina em casa, ou seja, em 2 máquinas diferentes. A máquina do trabalho usa o Windows 7 e a máquina de casa utiliza do Windows 10 Pro.
Seguem abaixo as evidências do erro:
C:\Treinamentos\Angular Alura\api>npm install
sqlite3@4.0.0 install C:\Treinamentos\Angular Alura\api\node_modules\sqlite3 node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(500): https://mapbox-node-binary.s3.amazonaw s.com/sqlite3/v4.0.0/node-v72-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for sqlite3@4.0.0 and node@12.4.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\marcelosd\AppData\Local\ProgramsPython\Python35\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3 ]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:290:12) gyp ERR! stack at ChildProcess.emit (events.js:200:13) gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/childproces s.js:283:5) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--f allback-to-build" "--module=C:\Treinamentos\Angular Alura\api\node_modules\ sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node" "--module_name=nod e_sqlite3" "--module_path=C:\Treinamentos\Angular Alura\api\node_modules\sq lite3\lib\binding\node-v72-win32-x64" "--napi_version=4" "--node_abi_napi=nap i" gyp ERR! cwd C:\Treinamentos\Angular Alura\api\node_modules\sqlite3 gyp ERR! node -v v12.4.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.e xe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.j s configure --fallback-to-build --module=C:\Treinamentos\Angular Alura\api\node_ modules\sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node --module_name=n ode_sqlite3 --module_path=C:\Treinamentos\Angular Alura\api\node_modules\sqlite3 \lib\binding\node-v72-win32-x64 --napi_version=4 --node_abi_napi=napi' (1) node-pre-gyp ERR! stack at ChildProcess. (C:\Treinamentos\Angular Alura\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:200:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/chi ldprocess.js:283:5) node-pre-gyp ERR! System Windows_NT 6.1.7601 node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Treinamento s\Angular Alura\api\node_modules\sqlite3\node_modules\node-pre-gyp\bin\n ode-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Treinamentos\Angular Alura\api\node_modules\sqlite3 node-pre-gyp ERR! node -v v12.4.0 node-pre-gyp ERR! node-pre-gyp -v v0.9.0 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node modules\npm\nodemodules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Treinamentos\Angular Alura\api\node_modules\sqlite3\lib\binding\nod e-v72-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Tr einamentos\Angular Alura\api\node_modules\sqlite3\lib\binding\node-v72-win32-x64 --napi_version=4 --node_abi_napi=napi' (1) npm WARN alurapic@1.0.0 No description npm WARN alurapic@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@4.0.0 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@4.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\marcelosd\AppData\Roaming\npm-cache_logs\2019-09-10T15_44 07014Z-debug.log