当前位置: 首页 > 知识库问答 >
问题:

Stuggles安装得更好-SQLITE3

谢俊力
2023-03-14

我目前正在使用webstorm作为我的IDE选择,并且正在尝试安装更好的SQLite3,但是每次尝试安装时都会收到以下错误消息:

更新:我已经在故障排除页面上完成了所有操作,这是我得到的错误消息:

gyp ERR! find VS
gyp ERR! find VS msvs_version was set from command line or npm config
gyp ERR! find VS - looking for Visual Studio version 2019
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS checking VS2019 (16.9.31112.23) found at:
gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - missing any VC++ toolset
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 valid versions for msvs_version:
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:315:5)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
gyp ERR! System Windows_NT 10.0.19042
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" "--release"
gyp ERR! cwd D:\Githubs\pandemic-review-site\implementation\backend\node_modules\better-sqlite3
gyp ERR! node -v v14.16.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.2 build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1

我已经安装了VSCode,“缺少任何VC++工具集”似乎是问题的症结所在

共有1个答案

邴姚石
2023-03-14

您需要确保安装了node-gyp及其所有依赖项,还需要使用以下命令为visual studio配置npm:

npm config set msvs_version 2019
npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"

它基本上都在这一页解释,我得到它的工作,按照提到的步骤。

 类似资料:
  • 仓库 Github:https://github.com/Yurunsoft/imi 目录结构 ├── bin // 可执行文件路径 ├── config // 框架核心配置文件 ├── doc // 文档 markdown 源文件 ├── mddoc // 文档 html 模版 ├── res // 资源文件 ├── src

  • null field name=“path_exact”type=“string”indexed=“true”stored=“true”termvectors=“true”/> field name=“title”type=“text_general”indexed=“true”stored=“true”multivalued=“true”termvectors=“true”/> 提到的唯一键 使

  • 本文向大家介绍Python pip 安装与使用(安装、更新、删除),包括了Python pip 安装与使用(安装、更新、删除)的使用技巧和注意事项,需要的朋友参考一下 pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。 pip检测更新 命令:pip list –outdated pip升级包 命令:pip install --upgrade pac

  • 问题内容: 我正在为与用户提供的USB记忆棒进行交互的设备编写python模块。用户可以将USB记忆棒插入设备的USB插槽中,并且该设备无需用户干预即可将数据转储到该记忆棒中。如果用户插入USB记忆棒时设备正在运行,则说明我已经挂接到D- Bus,并已完成所有自动安装例程。新问题是,如果在关闭设备电源的情况下插入了棒,该怎么办?打开设备电源后,没有收到D- Bus插入事件,也没有任何有关记忆棒的相

  • 本文向大家介绍Visual Studio 2017安装心得总结,包括了Visual Studio 2017安装心得总结的使用技巧和注意事项,需要的朋友参考一下 既然VS2017已经发布了,就想安装一下试试,先卸载VS2015, 网上有个完全卸载的东东,https://github.com/Microsoft/VisualStudioUninstaller/releases 听说安装完VS2017需

  • 问题内容: 我需要对象A的“列表”或“地图”。…此列表将从另一个ArrayList中添加。当A的参数相等时,认为对象A等于另一个。 我的问题是我只想添加列表中不存在的对象。我不知道在这两种实现方式之间。使用ArrayList或HashMap 哪一个会增加添加大量对象(超过1000个对象或更多对象)的速度更快?我的问题是否有更好的模式??? 问题答案: 首先,我要大胆地指出这是 两个完全不同的数据结