更好的sqlite3无法安装

时间:2019-08-27 22:09:07

标签: node.js npm npm-install node-gyp better-sqlite3

当尝试安装Better-sqlite3时,它始终具有相同的错误。

我尝试了以下操作:

-安装Windows-build-tools(最新和2015年)

-将msvs_versions更改为我已安装的所有版本

-已安装VSC 2019

-在VSC中创建和运行的项目

-沮丧地将我的头撞到键盘上

这些都不解决我的问题

错误:

> better-sqlite3@5.4.2 install L:\Code\AyyBot\node_modules\better-sqlite3
> node-gyp rebuild


L:\Code\AyyBot\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "C:\Users\InfoN9INSQ\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\InfoN9INSQ\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  extract_sqlite3
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [L:\Code\AyyBot\node_modules\better-sqlite3\build\deps\sqlite3.vcxproj]


gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\InfoN9INSQ\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:196:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\InfoN9INSQ\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd L:\Code\AyyBot\node_modules\better-sqlite3
gyp ERR! node -v v11.2.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'L:\Code\AyyBot\package.json'
npm WARN discord.js@11.5.1 requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
npm WARN AyyBot No description
npm WARN AyyBot No repository field.
npm WARN AyyBot No README data
npm WARN AyyBot No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@5.4.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@5.4.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\InfoN9INSQ\AppData\Roaming\npm-cache\_logs\2019-08-27T21_58_55_111Z-debug.log

0 个答案:

没有答案
相关问题