Error Starting Ghost then Installing npm vscode/sqlite3

If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be automatically closed.

If you aren’t running the latest version of Ghost, the first thing we’ll ask you to do is update to the latest version of Ghost.

How was Ghost installed and configured?
Using the docs:
Did an npm install of the latest version of ghost, then did a ghost install local
What Node version, database, OS & browser are you using?
Node Version: v16.14.2.
OS: Windows 10
- What errors or information do you see in the console?
0 verbose cli [
0 verbose cli ‘C:\Program Files\nodejs\node.exe’,
0 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
0 verbose cli ‘install’,
0 verbose cli ‘@vscode/sqlite3’,
0 verbose cli ‘–save’
0 verbose cli ]
1 info using npm@8.5.0
2 info using node@v16.14.2
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 4ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 8ms
6 timing config:load:builtin Completed in 9ms
7 timing config:load:cli Completed in 5ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:c:\ghost_cli.npmrc Completed in 1ms
10 timing config:load:project Completed in 7ms
11 timing config:load:file:C:\Users\vigra.npmrc Completed in 2ms
12 timing config:load:user Completed in 3ms
13 timing config:load:file:C:\Users\vigra\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 2ms
17 timing config:load:setEnvs Completed in 2ms
18 timing config:load Completed in 36ms
19 timing npm:load:configload Completed in 36ms
20 timing npm:load:setTitle Completed in 0ms
21 timing config:load:flatten Completed in 8ms
22 timing npm:load:display Completed in 11ms
23 verbose logfile C:\Users\vigra\AppData\Local\npm-cache_logs\2022-04-16T11_29_53_362Z-debug-0.log
24 timing npm:load:logFile Completed in 18ms
25 timing npm:load:timers Completed in 0ms
26 timing npm:load:configScope Completed in 0ms
27 timing npm:load Completed in 68ms
28 timing arborist:ctor Completed in 2ms
29 silly logfile start cleaning logs, removing 2 files
30 timing arborist:ctor Completed in 1ms
31 timing idealTree:init Completed in 31ms
32 timing idealTree:userRequests Completed in 6ms
33 silly idealTree buildDeps
34 silly fetch manifest @vscode/sqlite3@*
35 http fetch GET 200 1788ms (cache revalidated)
36 silly placeDep ROOT @vscode/sqlite3@5.0.8 OK for: want: *
37 silly fetch manifest node-addon-api@^4.2.0
38 http fetch GET 200 86ms (cache revalidated)
39 timing idealTree:#root Completed in 1910ms
40 silly placeDep ROOT node-addon-api@4.3.0 OK for: @vscode/sqlite3@5.0.8 want: ^4.2.0
41 timing idealTree:node_modules/@vscode/sqlite3 Completed in 8ms
42 timing idealTree:node_modules/node-addon-api Completed in 0ms
43 timing idealTree:buildDeps Completed in 1922ms
44 timing idealTree:fixDepFlags Completed in 1ms
45 timing idealTree Completed in 1964ms
46 timing reify:loadTrees Completed in 1966ms
47 timing reify:diffTrees Completed in 4ms
48 silly reify moves {}
49 timing reify:retireShallow Completed in 1ms
50 timing reify:createSparse Completed in 9ms
51 timing reify:loadBundles Completed in 0ms
52 silly audit bulk request { ‘@vscode/sqlite3’: [ ‘5.0.8’ ], ‘node-addon-api’: [ ‘4.3.0’ ] }
53 timing reifyNode:node_modules/node-addon-api Completed in 176ms
54 timing reifyNode:node_modules/@vscode/sqlite3 Completed in 262ms
55 timing reify:unpack Completed in 263ms
56 timing reify:unretire Completed in 0ms
57 timing build:queue Completed in 4ms
58 info run @vscode/sqlite3@5.0.8 install node_modules/@vscode/sqlite3 node-gyp rebuild
59 http fetch POST 200 845ms
60 timing auditReport:getReport Completed in 849ms
61 silly audit report {}
62 timing auditReport:init Completed in 0ms
63 timing reify:audit Completed in 851ms
64 info run @vscode/sqlite3@5.0.8 install { code: 1, signal: null }
65 timing reify:rollback:createSparse Completed in 39ms
66 timing reify:rollback:retireShallow Completed in 0ms
67 timing command:install Completed in 9706ms
68 verbose stack Error: command failed
68 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\promise-spawn\index.js:64:27)
68 verbose stack at ChildProcess.emit (node:events:526:28)
68 verbose stack at maybeClose (node:internal/child_process:1092:16)
68 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
69 verbose pkgid @vscode/sqlite3@5.0.8
70 verbose cwd c:\ghost_cli
71 verbose Windows_NT 10.0.19044
72 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “@vscode/sqlite3” “–save”
73 verbose node v16.14.2
74 verbose npm v8.5.0
75 error code 1
76 error path c:\ghost_cli\node_modules@vscode\sqlite3
77 error command failed
78 error command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
79 error gyp info it worked if it ends with ok
79 error gyp info using node-gyp@8.4.1
79 error gyp info using node@16.14.2 | win32 | x64
79 error gyp info find Python using Python version 3.9.12 found at “C:\Users\vigra\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe”
79 error gyp info find VS using VS2017 (15.9.28307.1300) found at:
79 error gyp info find VS “C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools”
79 error gyp info find VS run with --verbose for detailed information
79 error gyp info spawn C:\Users\vigra\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe
79 error gyp info spawn args [
79 error gyp info spawn args ‘C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\’,
79 error gyp info spawn args ‘binding.gyp’,
79 error gyp info spawn args ‘-f’,
79 error gyp info spawn args ‘msvs’,
79 error gyp info spawn args ‘-I’,
79 error gyp info spawn args ‘c:\ghost_cli\node_modules\@vscode\sqlite3\build\config.gypi’,
79 error gyp info spawn args ‘-I’,
79 error gyp info spawn args ‘C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi’,
79 error gyp info spawn args ‘-I’,
79 error gyp info spawn args ‘C:\Users\vigra\AppData\Local\node-gyp\Cache\16.14.2\common.gypi’,
79 error gyp info spawn args ‘-Dlibrary=shared_library’,
79 error gyp info spawn args ‘-Dvisibility=default’,
79 error gyp info spawn args ‘-Dnode_root_dir=C:\Users\vigra\AppData\Local\node-gyp\Cache\16.14.2’,
79 error gyp info spawn args ‘-Dnode_gyp_dir=C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp’,
79 error gyp info spawn args ‘-Dnode_lib_file=C:\\Users\\vigra\\AppData\\Local\\node-gyp\\Cache\\16.14.2\\<(target_arch)\\node.lib’,
79 error gyp info spawn args ‘-Dmodule_root_dir=c:\ghost_cli\node_modules\@vscode\sqlite3’,
79 error gyp info spawn args ‘-Dnode_engine=v8’,
79 error gyp info spawn args ‘–depth=.’,
79 error gyp info spawn args ‘–no-parallel’,
79 error gyp info spawn args ‘–generator-output’,
79 error gyp info spawn args ‘c:\ghost_cli\node_modules\@vscode\sqlite3\build’,
79 error gyp info spawn args ‘-Goutput_dir=.’
79 error gyp info spawn args ]
79 error gyp: C:\Users\vigra\AppData\Local\node-gyp\Cache\16.14.2\common.gypi not found (cwd: c:\ghost_cli\node_modules@vscode\sqlite3) while reading includes of binding.gyp while trying to load binding.gyp
79 error gyp ERR! configure error
79 error gyp ERR! stack Error: gyp failed with exit code: 1
79 error gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:259:16)
79 error gyp ERR! stack at ChildProcess.emit (node:events:526:28)
79 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
79 error gyp ERR! System Windows_NT 10.0.19044
79 error 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”
79 error gyp ERR! cwd c:\ghost_cli\node_modules@vscode\sqlite3
79 error gyp ERR! node -v v16.14.2
79 error gyp ERR! node-gyp -v v8.4.1
79 error gyp ERR! not ok
80 verbose exit 1
81 timing npm Completed in 10969ms
82 verbose unfinished npm timer reify 1650108594468
83 verbose unfinished npm timer reify:build 1650108596751
84 verbose unfinished npm timer build 1650108596752
85 verbose unfinished npm timer build:deps 1650108596752
86 verbose unfinished npm timer build:run:install 1650108596757
87 verbose unfinished npm timer build:run:install:node_modules/@vscode/sqlite3 1650108596757
88 verbose code 1
What steps could someone else take to reproduce the issue you’re having?
I installed ghost but on the step where it tries to start ghost, I get an error telling me that vscode/sqlite3 is missing an provides me with an npm install statement. This is the error I get when I try to npm Install vscode/sqlite3^
I am frankly not even sure of exactly what can be done. If I knew this I could have probably fixed the issue.