1
resposta

erro ao instalar dependencias

toda vez que tento instalar o sqlite3 recebo isso: pm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

sqlite3@4.0.2 install C:\Users\Luan Figueiredo\Desktop\FAÇA_HOJE\Produtividade\junho\node\cap4\casadocodigo\node_modules\sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.2/node-v72-win32-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.0.2 and node@12.16.3 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Pre-built binaries not installable for sqlite3@4.0.2 and node@12.16.3 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Connection closed while downloading tarball file gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS checking VS2019 (16.4.29905.134) found at: gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" gyp ERR! find VS - "Visual Studio C++ core features" missing gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS ** gyp ERR! find VS You need to install the latest version of Visual Studio gyp ERR! find VS including the "Desktop development with C++" workload. gyp ERR! find VS For more information consult the documentation at: gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! find VS ** gyp ERR! find VS gyp ERR! configure error gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! stack at ChildProcess.exithandler (child_process.js:310:5) gyp ERR! stack at ChildProcess.emit (events.js:310:20) gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) gyp ERR! System Windows_NT 10.0.18363

procurei no git , mas nao encontrei como resolver

1 resposta

Olá Luan, tudo bem com você?

Provavelmente deve ser um problema com a dependência do sqlite3, faça os seguintes procedimentos por favor:

  • Delete a pasta node_modules
  • Dentro do package.json retire o sqlite3 das depedências
  • Remova o arquivo package-lock.json
  • Utilize npm install sqlite3
  • Utilize npm install para fazer o download de todas dependências

E veja se funciona :)

Abraços e Bons Estudos!