Cannot find module '@vscode/sqlite3'

I was trying to reinstall Ghost(locally) but there was a problem when I tried to ghost start. I typed in recommended command and more error showed up like that. I don’t know what is the cause of the problem. If anybody knows please help. I would be very thankful.

PS C:\Users\noree\Desktop\my_website\ghost> ghost start
Found a development config but not a production config, running in development mode instead

√ Checking system Node.js version - found v16.14.2
√ Checking current folder permissions
√ Validating config
√ Checking memory availability
√ Checking binary dependencies
× Starting Ghost: ghost-local
A GhostError occurred.

Message: Ghost was able to start, but errored during boot with: Knex: run
$ npm install sqlite3 --save
Cannot find module '@vscode/sqlite3'
Require stack:
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\dialects\sqlite3\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\knex-builder\internal\config-resolver.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\knex-builder\Knex.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\knex.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex-migrator\lib\database.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex-migrator\lib\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\core\server\data\db\state-manager.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\core\boot.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\ghost.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\index.js

Debug Information:
    OS: Microsoft Windows 11 Home Single Language, v10.0.22000
    Node Version: v16.14.2
    Ghost Version: 4.42.0
    Ghost-CLI Version: 1.19.2
    Environment: development
    Command: 'ghost start'

Additional log info available in: C:\Users\noree\.ghost\logs\ghost-cli-debug-2022-04-03T10_43_28_168Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.

Then, I tried running ghost doctor

PS C:\Users\noree\Desktop\my_website\ghost> ghost doctor
Found a development config but not a production config, running in development mode instead

Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js

√ Checking system Node.js version - found v16.14.2
√ Checking current folder permissions
√ Validating config
√ Checking memory availability
√ Checking binary dependencies
√ Checking free space

It seems ok. So I ran install

PS C:\Users\noree\Desktop\my_website\ghost>  npm install sqlite3 --save      

up to date, audited 344 packages in 1s

13 packages are looking for funding
  run `npm fund` for details

3 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

Next I ran npm audit fix --force. After I saw this I got a heart attack.

PS C:\Users\noree\Desktop\my_website\ghost> npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm WARN audit Updating sqlite3 to 4.2.0,which is a SemVer major change.
npm ERR! code 1
npm ERR! path C:\Users\noree\Desktop\my_website\node_modules\sqlite3
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\noree\Desktop\my_website\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\noree\Desktop\my_website\node_modules\sqlite3\lib\binding\node-v93-win32-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@0.11.0
npm ERR! node-pre-gyp info using node@16.14.2 | win32 | x64
npm ERR! node-pre-gyp WARN Using needle for node-pre-gyp https download
npm ERR! node-pre-gyp info check checked for "C:\Users\noree\Desktop\my_website\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node" (not found)   
npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@16.14.2 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)    
npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.14.2 | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.14.2 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.4 found at "C:\Program Files\Python310\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS checking VS2022 (17.1.32319.34) found at:
npm ERR! gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - missing any VC++ toolset
npm ERR! gyp ERR! find VS checking VS2019 (16.11.32228.343) found at:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v142
npm ERR! gyp ERR! find VS - missing any Windows SDK
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS 
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)   
npm ERR! gyp ERR! stack     at C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
npm ERR! gyp ERR! stack     at C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack     at C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16
npm ERR! gyp ERR! stack     at C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack     at C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:406:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\noree\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\noree\\Desktop\\my_website\\node_modules\\sqlite3\\lib\\binding\\node-v93-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\noree\\Desktop\\my_website\\node_modules\\sqlite3\\lib\\binding\\node-v93-win32-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
npm ERR! gyp ERR! cwd C:\Users\noree\Desktop\my_website\node_modules\sqlite3
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\noree\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\noree\Desktop\my_website\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\noree\Desktop\my_website\node_modules\sqlite3\lib\binding\node-v93-win32-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\noree\Desktop\my_website\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.22000
npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\noree\\Desktop\\my_website\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd C:\Users\noree\Desktop\my_website\node_modules\sqlite3
npm ERR! node-pre-gyp ERR! node -v v16.14.2
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\noree\AppData\Local\npm-cache\_logs\2022-04-03T10_44_27_376Z-debug-0.log

I literally have no idea what to do next. Does anyone have any ideas what I might did wrong?

1 Like

If you will look in the thread I just made before you, there is a solution. However since you are on windows i think this is a bit more difficult.

I think you need to install g++.

Google this

A Beginner’s Guide to Install gcc and g++ Compiler on Windows 10

Then just force ghost install and it should be good

Maybe though with vscode you can install workloads for C++ and it would work… not sure.

An expert here might have an easier way though.

1 Like

Thank you so much. I’ll let you know if it works or not.

After I installed and set up MinGW C/C++ Compiler (in Windows 11), I go ahead retrying all the steps I had done before. Everything works but still stuck at Cannot find module '@vscode/sqlite3 even though I execute npm install sqlite3 --save and it just looks fine( it gave me no vulnerabilities like before). Do you have anymore suggestions what to do next. ;)

Running ghost update --force

Node Version: v16.14.2
PS C:\Users\noree\Desktop\my_website\ghost> ghost update --force
Found a development config but not a production config, running in development mode instead

√ Checking system Node.js version - found v16.14.2
√ Checking current folder permissions
√ Checking memory availability
√ Checking free space
√ Checking for available migrations
√ Checking for latest Ghost version

# 4.42.0

* 🐛 Fixed non-functioning "Leave" button on unsaved-changes confirmation modals - Kevin Ansfield
* 🐛 Fixed scheduled send-only post switching to publish+send when rescheduling - Kevin Ansfield
* 🐛 Fixed `__GHOST_URL__` tranformations in video cards - Naz
* 🐛  Fixed broken links in some of theme errors - Naz

---

View the changelogs for full details:
* Ghost - https://github.com/tryghost/ghost/compare/v4.41.3...v4.42.0
* Admin - https://github.com/tryghost/admin/compare/v4.41.3...v4.42.0

√ Fetched release notes
√ Downloading and updating Ghost to v4.42.0
√ Linking latest Ghost and recording versions
i Removing old Ghost versions [skipped]

Running ghost start (get the same error)

PS C:\Users\noree\Desktop\my_website\ghost> ghost start
Found a development config but not a production config, running in development mode instead

√ Checking system Node.js version - found v16.14.2
√ Checking current folder permissions
√ Validating config
√ Checking memory availability
√ Checking binary dependencies
× Starting Ghost: ghost-local
A GhostError occurred.

Message: Ghost was able to start, but errored during boot with: Knex: run
$ npm install sqlite3 --save
Cannot find module '@vscode/sqlite3'
Require stack:
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\dialects\sqlite3\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\knex-builder\internal\config-resolver.js       
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\knex-builder\Knex.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\knex.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex-migrator\lib\database.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex-migrator\lib\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\core\server\data\db\state-manager.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\core\boot.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\ghost.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\index.js

Debug Information:
    OS: Microsoft Windows 11 Home Single Language, v10.0.22000
    Node Version: v16.14.2
    Ghost Version: 4.42.0
    Ghost-CLI Version: 1.19.2
    Environment: development
    Command: 'ghost start'

Additional log info available in: C:\Users\noree\.ghost\logs\ghost-cli-debug-2022-04-03T15_18_39_274Z.log

Try running ghost doctor to check your system for known issues.

Running install sqlite3 --save(no errors like before but still unable to fix the problem :smiling_face_with_tear:)

PS C:\Users\noree\Desktop\my_website\ghost> npm install sqlite3 --save

up to date, audited 291 packages in 1s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\noree\Desktop\my_website\ghost> npm audit  
found 0 vulnerabilities
PS C:\Users\noree\Desktop\my_website\ghost> ghost start
Found a development config but not a production config, running in development mode instead

Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js

√ Checking system Node.js version - found v16.14.2
√ Checking current folder permissions
√ Validating config
√ Checking memory availability
√ Checking binary dependencies
× Starting Ghost: ghost-local
A GhostError occurred.

Message: Ghost was able to start, but errored during boot with: Knex: run
$ npm install sqlite3 --save
Cannot find module '@vscode/sqlite3'
Require stack:
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\dialects\sqlite3\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\knex-builder\internal\config-resolver.js       
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\knex-builder\Knex.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\lib\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex\knex.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex-migrator\lib\database.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\node_modules\knex-migrator\lib\index.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\core\server\data\db\state-manager.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\core\boot.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\ghost.js
- C:\Users\noree\Desktop\my_website\ghost\versions\4.42.0\index.js

Debug Information:
    OS: Microsoft Windows 11 Home Single Language, v10.0.22000
    Node Version: v16.14.2
    Ghost Version: 4.42.0
    Ghost-CLI Version: 1.19.2
    Environment: development
    Command: 'ghost start'

Additional log info available in: C:\Users\noree\.ghost\logs\ghost-cli-debug-2022-04-03T15_19_26_999Z.log

Try running ghost doctor to check your system for known issues.

Did you happen to verify the C++ install? There should be a way, or try to make. I think using “g++ --v” or “g++ --version” should return the version.

If it shows installed and still doesn’t work then I really don’t know. What Daniel had stated was that the @vscode/sqlite3 was failing to compile. So if you sorted that out with g++ then I am not sure what the problem would be. Someone more knowledgeable is gonna have to help you. Sorry

1 Like

Following this. I made a local install a couple of days ago and it worked like a charm, but then I uninstalled because I was hosting it on DigitalOcean and didnt want to have any conflicting issues (I am new to this, probably wasnt necessary), and then I tried to reinstall the local version,and I got all your exact same issues. I am guessing this a fairly new problem. Lets hope we can get it solved asap :)

I’m also having this exact issue. I’ve tried a couple of recommendations from other threads but no success yet. Following this in hopes of a solution :)

1 Like

What do you get if you go to a (non-Ghost folder) directory and try yarn add @vscode/sqlite3 --verbose? (particularly the bottom section where the error happens and the lines are initially prepended with gyp info ...)

Sorry for answering late, I didn’t have yarn so I use npm instead (don’t know if the command I’ve used below function as it should. I have no idea) but I get this

edit: I installed and run yarn add @vscode/sqlite3 --verbose as you suggested.

PS C:\Users\noree\Desktop> npm install --global yarn

added 1 package, and audited 2 packages in 2s

found 0 vulnerabilities
PS C:\Users\noree\Desktop> yarn --version
1.22.18
PS C:\Users\noree\Desktop> yarn add @vscode/sqlite3 --verbose
yarn add v1.22.18
verbose 0.1859004 Checking for configuration file "C:\\Users\\noree\\Desktop\\.npmrc".
verbose 0.1868836 Checking for configuration file "C:\\Users\\noree\\.npmrc".
verbose 0.1877823 Found configuration file "C:\\Users\\noree\\.npmrc".
verbose 0.1907861 Checking for configuration file "C:\\Program Files\\nodejs\\etc\\npmrc".
verbose 0.1923215 Checking for configuration file "C:\\Users\\noree\\Desktop\\.npmrc".
verbose 0.1937152 Checking for configuration file "C:\\Users\\noree\\.npmrc".
verbose 0.1953026 Found configuration file "C:\\Users\\noree\\.npmrc".
verbose 0.196624 Checking for configuration file "C:\\Users\\.npmrc".
verbose 0.2006507 Checking for configuration file "C:\\Users\\noree\\Desktop\\.yarnrc".
verbose 0.2016014 Checking for configuration file "C:\\Users\\noree\\.yarnrc".
verbose 0.2024982 Checking for configuration file "C:\\Program Files\\nodejs\\etc\\yarnrc".
verbose 0.203443 Checking for configuration file "C:\\Users\\noree\\Desktop\\.yarnrc".
verbose 0.2045653 Checking for configuration file "C:\\Users\\noree\\.yarnrc".
verbose 0.2056619 Checking for configuration file "C:\\Users\\.yarnrc".
verbose 0.210846 current time: 2022-04-06T09:01:24.106Z
info No lockfile found.
verbose 0.2313782 Performing "GET" request to "https://yarnpkg.com/latest-version".
[1/4] Resolving packages...
verbose 0.2758385 Performing "GET" request to "https://registry.yarnpkg.com/@vscode%2fsqlite3".
verbose 0.6321587 Request "https://yarnpkg.com/latest-version" finished with status code 200.
verbose 2.2393653 Request "https://registry.yarnpkg.com/@vscode%2fsqlite3" finished with status code 200.
verbose 2.2431617 Performing "GET" request to "https://registry.yarnpkg.com/node-addon-api".
verbose 2.2874177 Request "https://registry.yarnpkg.com/node-addon-api" finished with status code 200.
[2/4] Fetching packages...
[3/4] Linking dependencies...
verbose 2.3457712 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3".
verbose 2.3466242 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api".
verbose 2.3555397 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\.github".
verbose 2.3566989 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\tools".
verbose 2.3573827 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\lib".
verbose 2.3579506 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\deps".
verbose 2.3587095 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools".
verbose 2.3598659 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src".
verbose 2.3648253 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\.github\\workflows".
verbose 2.3655053 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools\\docker".
verbose 2.3675867 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture". 
verbose 2.3703854 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64".
verbose 2.3723899 Creating directory "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm".
verbose 2.3763115 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\LICENSE.md" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\LICENSE.md".
verbose 2.3796053 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\common.gypi" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\common.gypi".
verbose 2.3814419 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\except.gypi" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\except.gypi".
verbose 2.3825473 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\napi-inl.h" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\napi-inl.h".
verbose 2.3835812 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\napi-inl.deprecated.h" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\napi-inl.deprecated.h".
verbose 2.3846244 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\index.js" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\index.js".
verbose 2.385834 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\napi.h" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\napi.h".
verbose 2.3871958 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\node_api.gyp" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\node_api.gyp".
verbose 2.3891077 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\noexcept.gypi" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\noexcept.gypi".
verbose 2.3905763 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\nothing.c" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\nothing.c".
verbose 2.3924851 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\package.json" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\package.json".
verbose 2.3940365 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\package-support.json" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\package-support.json".
verbose 2.3953083 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\README.md" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\README.md".
verbose 2.3964753 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\.dockerignore" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\.dockerignore".
verbose 2.3977652 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\.yarnrc" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\.yarnrc".
verbose 2.3988752 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\binding.gyp" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\binding.gyp".
verbose 2.4000532 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\CHANGELOG.md" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\CHANGELOG.md".
verbose 2.4010572 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\CONTRIBUTING.md" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\CONTRIBUTING.md".
verbose 2.4020542 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\Dockerfile" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\Dockerfile".
verbose 2.4040947 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\index.d.ts" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\index.d.ts".
verbose 2.4119698 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\LICENSE" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\LICENSE".
verbose 2.414218 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\README.md" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\README.md".
verbose 2.4152248 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\package.json" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\package.json".
verbose 2.4160554 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\SECURITY.md" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\SECURITY.md".
verbose 2.4171123 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\sqlite3.js" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\sqlite3.js".
verbose 2.4180212 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\clang-format.js" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\tools\\clang-format.js".
verbose 2.4214153 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\conversion.js" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\tools\\conversion.js".
verbose 2.4226104 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\check-napi.js" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\tools\\check-napi.js".
verbose 2.4240673 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\lib\\index.js" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\lib\\index.js".
verbose 2.4249085 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\eslint-format.js" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\tools\\eslint-format.js".
verbose 2.4256045 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\README.md" to "C:\\Users\\noree\\Desktop\\node_modules\\node-addon-api\\tools\\README.md".
verbose 2.4264034 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\lib\\sqlite3-binding.js" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\lib\\sqlite3-binding.js".
verbose 2.4272083 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\lib\\sqlite3.js" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\lib\\sqlite3.js".
verbose 2.4285541 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\deps\\common-sqlite.gypi" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\deps\\common-sqlite.gypi".
verbose 2.4311895 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\lib\\trace.js" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\lib\\trace.js".
verbose 2.4328761 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\deps\\sqlite3.gyp" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\deps\\sqlite3.gyp".
verbose 2.4342866 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\deps\\sqlite-autoconf-3360000.tar.gz" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\deps\\sqlite-autoconf-3360000.tar.gz".
verbose 2.4364893 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\backup.cc" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\backup.cc".
verbose 2.4379545 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\deps\\extract.py" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\deps\\extract.py".
verbose 2.4390139 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\database.cc" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\database.cc".
verbose 2.4398367 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\async.h" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\async.h".
verbose 2.4405838 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\database.h" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\database.h".
verbose 2.4415306 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\backup.h" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\backup.h".
verbose 2.4423556 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\gcc-preinclude.h" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\gcc-preinclude.h".
verbose 2.4432851 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\macros.h" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\macros.h".
verbose 2.4448171 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\statement.cc" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\statement.cc".
verbose 2.4468831 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\node_sqlite3.cc" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\node_sqlite3.cc".
verbose 2.4483133 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\statement.h" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\statement.h".
verbose 2.4513587 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\threading.h" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\src\\threading.h".
verbose 2.452361 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\.github\\workflows\\node.js.yml" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\.github\\workflows\\node.js.yml".
verbose 2.4532965 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64\\Dockerfile" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64\\Dockerfile".
verbose 2.454148 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64\\run.sh" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64\\run.sh".
verbose 2.4577785 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm\\Dockerfile" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm\\Dockerfile".
verbose 2.4590329 Copying "C:\\Users\\noree\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm\\run.sh" to "C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm\\run.sh".
[4/4] Building fresh packages...
verbose 9.557429 Error: C:\Users\noree\Desktop\node_modules\@vscode\sqlite3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\Users\noree\Desktop\node_modules\@vscode\sqlite3
Output:
C:\Users\noree\Desktop\node_modules\@vscode\sqlite3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.14.2 | win32 | x64
gyp info find Python using Python version 3.10.4 found at "C:\Program Files\Python310\python.exe"
gyp info find VS using VS2022 (17.1.32328.378) found at:
gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Program Files\Python310\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\noree\\AppData\\Roaming\\nvm\\v16.14.2\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\noree\\AppData\\Roaming\\nvm\\v16.14.2\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\noree\\AppData\\Local\\node-gyp\\Cache\\16.14.2\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\noree\\AppData\\Local\\node-gyp\\Cache\\16.14.2',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\noree\\AppData\\Roaming\\nvm\\v16.14.2\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\noree\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.14.2\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
  nothing.c
  win_delay_load_hook.cc
  nothing.vcxproj -> C:\Users\noree\Desktop\node_modules\@vscode\sqlite3\build\Release\\nothing.lib
  unpack_sqlite_dep
  'C:\Program' is not recognized as an internal or external command,
  operable program or batch file.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for '..\..\deps\sqlite-autoconf-3360000.tar.gz' exited with code 1. [C:\Users\noree\Desktop\node_modules\@vscode\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\noree\AppData\Roaming\nvm\v16.14.2\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.22000
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"
gyp ERR! cwd C:\Users\noree\Desktop\node_modules\@vscode\sqlite3
gyp ERR! node -v v16.14.2
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
    at ProcessTermError.ExtendableBuiltin (C:\Users\noree\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:721:66)
    at ProcessTermError.MessageError (C:\Users\noree\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:750:123)
    at new ProcessTermError (C:\Users\noree\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:790:113)
    at ChildProcess.<anonymous> (C:\Users\noree\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:25783:17)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
error C:\Users\noree\Desktop\node_modules\@vscode\sqlite3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\Users\noree\Desktop\node_modules\@vscode\sqlite3
Output:
C:\Users\noree\Desktop\node_modules\@vscode\sqlite3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.14.2 | win32 | x64
gyp info find Python using Python version 3.10.4 found at "C:\Program Files\Python310\python.exe"
gyp info find VS using VS2022 (17.1.32328.378) found at:
gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Program Files\Python310\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\noree\\AppData\\Roaming\\nvm\\v16.14.2\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\noree\\AppData\\Roaming\\nvm\\v16.14.2\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\noree\\AppData\\Local\\node-gyp\\Cache\\16.14.2\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\noree\\AppData\\Local\\node-gyp\\Cache\\16.14.2',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\noree\\AppData\\Roaming\\nvm\\v16.14.2\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\noree\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.14.2\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\noree\\Desktop\\node_modules\\@vscode\\sqlite3\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
  nothing.c
  win_delay_load_hook.cc
  nothing.vcxproj -> C:\Users\noree\Desktop\node_modules\@vscode\sqlite3\build\Release\\nothing.lib
  unpack_sqlite_dep
  'C:\Program' is not recognized as an internal or external command,
  operable program or batch file.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: Custom build for '..\..\deps\sqlite-autoconf-3360000.tar.gz' exited with code 1. [C:\Users\noree\Desktop\node_modules\@vscode\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\noree\AppData\Roaming\nvm\v16.14.2\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.22000
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"
gyp ERR! cwd C:\Users\noree\Desktop\node_modules\@vscode\sqlite3
gyp ERR! node -v v16.14.2
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Please let me know if I did something wrong.
Thanks for your help so much :)

I started back into windows to see if I could install Ghost, now that I have it running on linux. I am still having the above issue that @legitwision is having.

I did some digging. Seems the npm package knex is perhaps the cause. There was an update pushed a few days ago that supposedly fixed this. I updated knex to 1.0.5 and it still throws the same error with the same bad advice to run $ npm install sqlite3 --save.

Here is a link for the issue Fix @vscode-sqlite3 error message by OlivierCavadenti · Pull Request #5081 · knex/knex · GitHub
I tried several things but no joy. Maybe this info will help.

Edit: Lol, I went back to that thread on github to check the comments and saw @daniellockyer was already there.

thanks for the help, at least there is some comfort in knowing that others have the same exact issue haha… I was trying some suggestions for npm, even installing python because of one thing I read, but to no avail yet :frowning:

Guys. I solved the issue. One of the errors I had when i was trying to install sqlite3 via npm, was that Visual Studio was not installed, and the error said to install Visual Studio with the option of C++ for Desktop. I installed it (its 8.2 GB ) Though, bear in mind. After that it suggested to restart. Restarted. Tried again ghost start and it was failing, but when I uninstalled my ghost instance for the site I am going to build (ghost uninstall) , and then went again with ghost install local, it worked perfectly.

Hope this solutions works for you too!

2 Likes

Good news!

We’re looking at picking up on some maintenance work in the original sqlite3 module in coming weeks and months, so I’ll be sure to get pre-built binaries working so there’s no need to compile. No fixed timeline on that though :slightly_smiling_face:

hmm, this didn’t work out for me. I already had Visual Studio with all the c++ add-ons installed. Is there something else you might have done? I might shift back to linux, its just that there is some software I prefer that doesn’t have a linux flavor.

I double checked and I have 2022 Visual Studio with the c++ desktop dev stuff.

Not sure why its not working.

I had the same issue on Mac.

I fixed it by installing Xcode Command Line Tools with

xcode-select --install

After that it worked fine.

1 Like

I have same problem when trying to install ghost on Centos 7.

Here the post I found https://stackoverflow.com/a/71116470/5589347


When I run npm i @vscode/sqlite3 I relize that the folder @vscode/sqlite3 not exists. So I create that folder in node_modules then copy sqlite3 to inside it. Then ghost start works

1 Like

Same issue on Mac, and what fixed it for me was getting rid of spaces in directory name, if you do that sort of thing. :grimacing:

This solution solved it on Mac. Thank you!

1 Like

Are you kidding me, of course I’m not going to install Visual Studio just to be able to install a node package. :/

On Windows here, Ghost v4.44.0, fails to run with the following:

Message: Ghost was able to start, but errored during boot with: Knex: run
$ npm install @vscode/sqlite3 --save
Cannot find module '@vscode/sqlite3'
Require stack:
- <ghost-path>\versions\4.44.0\node_modules\knex-migrator\node_modules\knex\lib\dialects\sqlite3\index.js
- <ghost-path>\versions\4.44.0\node_modules\knex-migrator\node_modules\knex\lib\knex-builder\internal\config-resolver.js
- <ghost-path>\versions\4.44.0\node_modules\knex-migrator\node_modules\knex\lib\knex-builder\Knex.js
- <ghost-path>\versions\4.44.0\node_modules\knex-migrator\node_modules\knex\lib\index.js
- <ghost-path>\versions\4.44.0\node_modules\knex-migrator\node_modules\knex\knex.js
- <ghost-path>\4.44.0\node_modules\knex-migrator\lib\database.js
- <ghost-path>\4.44.0\node_modules\knex-migrator\lib\index.js
- <ghost-path>\versions\4.44.0\core\server\data\db\state-manager.js
- <ghost-path>\versions\4.44.0\core\boot.js
- <ghost-path>\versions\4.44.0\ghost.js
- <ghost-path>\versions\4.44.0\index.js

As other folks mentioned, this issue is caused by Knex package trying to find ‘@vscode/sqlite3’ as a dependency (which is different then sqlite3!). On Windows, you might not be able to just install this via ‘npm install @vscode/sqlite3 --save’ because the install script apparently does bunch of checks on the availability of certain versions of Visual Studio and will throw quite a few errors.

To solve this, go to the correct node_modules folder of your Ghost installation:
cd <ghost-path>\versions\4.44.0\node_modules

Then replace the knex version here:
npm uninstall knex
npm install knex@^0.95.15

This version of Knex seems to be getting along fine with regular sqlite3, and hopefully your ghost instance will be able to start fine.

1 Like

Thank you for your help. Sadly, it didn’t work for me. I tried installing git in my computer but no luck ;)

PS C:\Users\UNS_CT\OneDrive\desktop\my_website\ghost> cd C:\Users\UNS_CT\OneDrive\desktop\my_website\ghost\versions\4.44.0\node_modules                            
PS C:\Users\UNS_CT\OneDrive\desktop\my_website\ghost\versions\4.44.0\node_modules> npm uninstall knex
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\UNS_CT\AppData\Local\npm-cache\_logs\2022-04-17T06_15_45_126Z-debug-0.log
PS C:\Users\UNS_CT\OneDrive\desktop\my_website\ghost\versions\4.44.0\node_modules> npm install knex@^0.95.15
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ghost@4.44.0
npm WARN Found: knex@1.0.7
npm WARN node_modules/knex
npm WARN   knex@"0.95.15" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer knex@">=0.15.0 <0.22.0" from bookshelf@1.2.0
npm WARN node_modules/bookshelf
npm WARN   peer bookshelf@">=1.1.0" from bookshelf-relations@2.4.0
npm WARN   node_modules/bookshelf-relations
npm WARN   1 more (the root project)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ghost@4.44.0
npm WARN Found: knex@1.0.7
npm WARN node_modules/knex
npm WARN   knex@"0.95.15" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer knex@">=0.15.0 <0.22.0" from bookshelf@1.2.0
npm WARN node_modules/bookshelf
npm WARN   peer bookshelf@">=1.1.0" from bookshelf-relations@2.4.0
npm WARN   node_modules/bookshelf-relations
npm WARN   1 more (the root project)
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\UNS_CT\AppData\Local\npm-cache\_logs\2022-04-17T06_17_17_219Z-debug-0.log```