Build error in windows 10

I'm following the build guide. On running yarn install command, I'm getting the below error. Can somebody help me with it?

➤ YN0000: ┌ Resolution step
➤ YN0002: │ @aws-sdk/client-s3@npm:3.44.0 doesn't provide @aws-sdk/signature-v4-crt (p6155d), requested by @aws-sdk/middleware-sdk-s3
➤ YN0002: │ @aws-sdk/s3-request-presigner@npm:3.44.0 doesn't provide @aws-sdk/signature-v4-crt (pf5946), requested by @aws-sdk/middleware-sdk-s3        
➤ YN0060: │ @joplin/app-desktop@workspace:packages/app-desktop provides react (p420ff) with version 16.13.1, which doesn't satisfy what react-test-rende
rer requests
➤ YN0060: │ @joplin/app-desktop@workspace:packages/app-desktop provides react-dom (p2e5b2) with version 16.9.0, which doesn't satisfy what re-resizable 
requests
➤ YN0002: │ @joplin/app-desktop@workspace:packages/app-desktop doesn't provide react-is (p0cdf0), requested by styled-components
➤ YN0060: │ @joplin/app-mobile@workspace:packages/app-mobile provides react 
(pb7acb) with version 17.0.2, which doesn't satisfy what react-redux requests
➤ YN0060: │ @joplin/app-mobile@workspace:packages/app-mobile provides react-native (pbf89e) with version 0.66.1, which doesn't satisfy what react-native-webview requests
➤ YN0002: │ @joplin/app-mobile@workspace:packages/app-mobile doesn't provide react-native-windows (pb66a5), requested by react-native-fs
➤ YN0002: │ @joplin/app-mobile@workspace:packages/app-mobile doesn't provide tslib (p1cc78), requested by @rollup/plugin-typescript
➤ YN0060: │ @joplin/fork-htmlparser2@workspace:packages/fork-htmlparser2 provides eslint (p4ecde) with version 6.8.0, which doesn't satisfy what @typescript-eslint/eslint-plugin and some of its descendants request
➤ YN0060: │ @joplin/fork-htmlparser2@workspace:packages/fork-htmlparser2 provides eslint (p83f76) with version 6.8.0, which doesn't satisfy what @typescript-eslint/parser requests
➤ YN0060: │ @joplin/fork-htmlparser2@workspace:packages/fork-htmlparser2 provides jest (pa940f) with version 26.6.3, which doesn't satisfy what ts-jest 
requests
➤ YN0060: │ @joplin/server@workspace:packages/server provides sqlite3 (p9ac44) with version 4.2.0, which doesn't satisfy what @rmp135/sql-ts and some of its descendants request
➤ YN0060: │ @joplin/server@workspace:packages/server provides sqlite3 (p05a2d) with version 4.2.0, which doesn't satisfy what knex requests
➤ YN0002: │ @octokit/rest@npm:16.43.2 doesn't provide @octokit/core (p84523), requested by @octokit/plugin-request-log
➤ YN0002: │ react-native-codegen@npm:0.0.7 doesn't provide @babel/preset-env (pe4ee6), requested by jscodeshift
➤ YN0060: │ root@workspace:. provides eslint (p2edfe) with version 7.32.0, which doesn't satisfy what eslint-plugin-react-hooks requests
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 678ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 6s 421ms
➤ YN0000: ┌ Link step
➤ YN0076: │ fsevents@patch:fsevents@npm%3A1.2.13#~builtin<compat/fsevents>::version=1.2.13&hash=18f3a7 The win32-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7 The win32-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ 7zip-bin-linux@npm:1.3.1 The win32-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ 7zip-bin-mac@npm:1.0.1 The win32-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ dmg-license@npm:1.0.10 The win32-x64 architecture is incompatible with this module, link skipped.
➤ YN0076: │ iconv-corefoundation@npm:1.1.7 The win32-x64 architecture is incompatible with this module, link skipped.
➤ YN0007: │ sqlite3@npm:4.2.0 must be built because it never has been before or the last one failed
➤ YN0009: │ sqlite3@npm:4.2.0 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\DIVYAN~1\AppData\Local\Temp\xfs-064e9b6b\build.log)
➤ YN0007: │ root@workspace:. must be built because it never has been before or the last one failed       
➤ YN0007: │ @joplin/app-desktop@workspace:packages/app-desktop must be built because it never has been before or the last one failed   
➤ YN0009: │ @joplin/app-desktop@workspace:packages/app-desktop couldn't be built successfully (exit code 1, logs can be found here: C:\Users\DIVYAN~1\AppData\Local\Temp\xfs-80c06c5e\build.log)
➤ YN0009: │ root@workspace:. couldn't be built successfully (exit code 1, logs can be found here: C:\Users\DIVYAN~1\AppData\Local\Temp\xfs-2bc92951\build.log)
➤ YN0000: └ Completed in 1m 11s
➤ YN0000: Failed with errors in 1m 19s

What is in the log files that it references?

Also please provide system information, and please tell us what you have already done trying to resolve this problem.

Below are the 3 log files

# This file contains the result of Yarn building a package (sqlite3@npm:4.2.0)
# Script name: install

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.11.0
node-pre-gyp info using node@16.13.1 | win32 | x64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp info check checked for "C:\Users\Divyanshu Parwal\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
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 
node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@16.13.1 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) 
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 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | win32 | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | win32 | x64
gyp ERR! find Python 
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python39\python.exe
gyp ERR! find Python - "C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python39\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python39-32\python.exe
gyp ERR! find Python - "C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python38\python.exe
gyp ERR! find Python - "C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python38\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python38-32\python.exe
gyp ERR! find Python - "C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python37\python.exe
gyp ERR! find Python - "C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python37\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe
gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python37-32\python.exe
gyp ERR! find Python - "C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python36\python.exe
gyp ERR! find Python - "C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python36\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe
gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python36-32\python.exe
gyp ERR! find Python - "C:\Users\Divyanshu Parwal\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if the py launcher can be used to find Python 3
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python 
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python 
gyp ERR! configure error 
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\node-gyp\lib\find-python.js:330:47)
gyp ERR! stack     at PythonFinder.runChecks (C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\node-gyp\lib\find-python.js:159:21)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\node-gyp\lib\find-python.js:228:18)
gyp ERR! stack     at PythonFinder.execFileCallback (C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\node-gyp\lib\find-python.js:294:16)
gyp ERR! stack     at exithandler (node:child_process:404:5)
gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:416:5)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
gyp ERR! stack     at onErrorNT (node:internal/child_process:477:16)
gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Divyanshu Parwal\\joplin\\packages\\tools\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Divyanshu Parwal\\joplin\\packages\\server\\node_modules\\sqlite3\\lib\\binding\\node-v93-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\Divyanshu Parwal\\joplin\\packages\\server\\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"
gyp ERR! cwd C:\Users\Divyanshu Parwal\joplin\packages\server\node_modules\sqlite3
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Divyanshu Parwal\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Divyanshu Parwal\joplin\packages\server\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)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1064:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Windows_NT 10.0.19043
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Divyanshu Parwal\\joplin\\packages\\tools\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Divyanshu Parwal\joplin\packages\server\node_modules\sqlite3
node-pre-gyp ERR! node -v v16.13.1
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok 
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Divyanshu Parwal\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Divyanshu Parwal\joplin\packages\server\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)

# This file contains the result of Yarn building a package (@joplin/app-desktop@workspace:packages/app-desktop)
# Script name: postinstall

[e[90m16:38:16e[39m] Using gulpfile ~\joplin\packages\app-desktop\gulpfile.js
[e[90m16:38:16e[39m] Starting 'build'...
[e[90m16:38:16e[39m] Starting 'compileScripts'...
[e[90m16:38:16e[39m] Starting 'compilePackageInfo'...
[e[90m16:38:16e[39m] Starting 'copyPluginAssets'...
[e[90m16:38:16e[39m] Starting 'copyApplicationAssets'...
[e[90m16:38:16e[39m] Starting 'updateIgnoredTypeScriptBuild'...
[e[90m16:38:16e[39m] Starting 'buildCommandIndex'...
[e[90m16:38:16e[39m] Starting 'compileSass'...
Compiling C:\Users\Divyanshu Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.jsx...

Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.min.js doesn't exist. C:\Users\Divyanshu doesn't exist. Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.jsx doesn't exist

[e[90m16:38:27e[39m] The following tasks did not complete: build, compileScripts, compilePackageInfo, copyPluginAssets, copyApplicationAssets, updateIgnoredTypeScriptBuild, buildCommandIndex, compileSass
[e[90m16:38:27e[39m] Did you forget to signal async completion?

# This file contains the result of Yarn building a package (root@workspace:.)
# Script name: postinstall

[e[90m16:38:14e[39m] Using gulpfile ~\joplin\gulpfile.js
[e[90m16:38:14e[39m] Starting 'build'...
> yarn [ 'run', 'buildParallel' ]
➤ YN0000: [joplin]: Process started
➤ YN0000: [@joplin/app-desktop]: Process started
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Using gulpfile ~\joplin\packages\app-desktop\gulpfile.js
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'build'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'compileScripts'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'compilePackageInfo'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'copyPluginAssets'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'copyApplicationAssets'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'updateIgnoredTypeScriptBuild'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'buildCommandIndex'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'compileSass'...
➤ YN0000: [@joplin/app-desktop]: Compiling C:\Users\Divyanshu Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.jsx...
➤ YN0000: [@joplin/app-desktop]: 
➤ YN0000: [@joplin/app-desktop]: Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.min.js doesn't exist. C:\Users\Divyanshu doesn't exist. Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.jsx doesn't exist
➤ YN0000: [@joplin/app-desktop]: 
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:27e[39m] The following tasks did not complete: build, compileScripts, compilePackageInfo, copyPluginAssets, copyApplicationAssets, updateIgnoredTypeScriptBuild, buildCommandIndex, compileSass
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:27e[39m] Did you forget to signal async completion?
➤ YN0000: [@joplin/app-desktop]: Process exited (exit code 1), completed in 8s 365ms
➤ YN0000: [@joplin/app-mobile]: Process started
➤ YN0000: [joplin]: [e[90m16:38:29e[39m] Using gulpfile ~\joplin\packages\app-cli\gulpfile.js
➤ YN0000: [joplin]: [e[90m16:38:29e[39m] Starting 'build'...
➤ YN0000: [joplin]: [e[90m16:38:29e[39m] Starting 'prepareBuild'...
➤ YN0000: [joplin]: [e[90m16:38:30e[39m] Finished 'prepareBuild' after 738 ms
➤ YN0000: [joplin]: [e[90m16:38:30e[39m] Finished 'build' after 748 ms
➤ YN0000: [joplin]: Process exited (exit code 0), completed in 10s 984ms
➤ YN0000: [@joplin/fork-htmlparser2]: Process started
➤ YN0000: [@joplin/app-mobile]: [e[90m16:38:40e[39m] Using gulpfile ~\joplin\packages\app-mobile\gulpfile.js
➤ YN0000: [@joplin/app-mobile]: [e[90m16:38:40e[39m] Starting 'build'...
➤ YN0000: [@joplin/app-mobile]: [e[90m16:38:40e[39m] Starting 'buildInjectedJs'...
➤ YN0000: [@joplin/app-mobile]: Building CodeMirror bundle...
➤ YN0000: [@joplin/fork-htmlparser2]: Process exited (exit code 0), completed in 14s 603ms
➤ YN0000: [@joplin/server]: Process started
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Using gulpfile ~\joplin\packages\server\gulpfile.js
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Starting 'build'...
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Starting 'compilePackageInfo'...
➤ YN0000: [@joplin/server]: Generated C:\Users\Divyanshu Parwal\joplin\packages\server/dist/packageInfo.js
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Finished 'compilePackageInfo' after 115 ms
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Finished 'build' after 120 ms
➤ YN0000: [@joplin/server]: Process exited (exit code 0), completed in 10s 189ms
➤ YN0000: [@joplin/turndown]: Process started
➤ YN0000: [@joplin/turndown]: 
➤ YN0000: [@joplin/turndown]: src/turndown.js → lib/turndown.cjs.js...
➤ YN0000: [@joplin/turndown]: created lib/turndown.cjs.js in 651ms
➤ YN0000: [@joplin/turndown]: Process exited (exit code 0), completed in 3s 736ms
➤ YN0000: [@joplin/turndown-plugin-gfm]: Process started
➤ YN0000: [@joplin/turndown-plugin-gfm]: 
➤ YN0000: [@joplin/turndown-plugin-gfm]: src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
➤ YN0000: [@joplin/turndown-plugin-gfm]: created lib/turndown-plugin-gfm.cjs.js in 248ms
➤ YN0000: [@joplin/turndown-plugin-gfm]: Process exited (exit code 0), completed in 2s
➤ YN0000: [@joplin/app-mobile]: Creating: C:\Users\Divyanshu Parwal\joplin/packages/app-mobile/lib/rnInjectedJs/webviewLib.js
➤ YN0000: [@joplin/app-mobile]: Creating: C:\Users\Divyanshu Parwal\joplin/packages/app-mobile/lib/rnInjectedJs/CodeMirror.bundle.js
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:16e[39m] Finished 'buildInjectedJs' after 36 s
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:16e[39m] Starting 'encodeAssets'...
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:17e[39m] Finished 'encodeAssets' after 857 ms
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:17e[39m] Starting 'podInstall'...
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:17e[39m] Finished 'podInstall' after 884 μs
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:17e[39m] Finished 'build' after 37 s
➤ YN0000: [@joplin/app-mobile]: Process exited (exit code 0), completed in 50s 4ms
➤ YN0000: Done in 58s 397ms
[e[90m16:39:17e[39m] 'build' errored after 1.03 min
[e[90m16:39:17e[39m] Error: Command failed with exit code 1: yarn run buildParallel
➤ YN0000: [joplin]: Process started
➤ YN0000: [@joplin/app-desktop]: Process started
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Using gulpfile ~\joplin\packages\app-desktop\gulpfile.js
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'build'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'compileScripts'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'compilePackageInfo'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'copyPluginAssets'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'copyApplicationAssets'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'updateIgnoredTypeScriptBuild'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'buildCommandIndex'...
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:22e[39m] Starting 'compileSass'...
➤ YN0000: [@joplin/app-desktop]: Compiling C:\Users\Divyanshu Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.jsx...
➤ YN0000: [@joplin/app-desktop]: 
➤ YN0000: [@joplin/app-desktop]: Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.min.js doesn't exist. C:\Users\Divyanshu doesn't exist. Parwal\joplin\packages\app-desktop\tools/../gui/ExtensionBadge.jsx doesn't exist
➤ YN0000: [@joplin/app-desktop]: 
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:27e[39m] The following tasks did not complete: build, compileScripts, compilePackageInfo, copyPluginAssets, copyApplicationAssets, updateIgnoredTypeScriptBuild, buildCommandIndex, compileSass
➤ YN0000: [@joplin/app-desktop]: [e[90m16:38:27e[39m] Did you forget to signal async completion?
➤ YN0000: [@joplin/app-desktop]: Process exited (exit code 1), completed in 8s 365ms
➤ YN0000: [@joplin/app-mobile]: Process started
➤ YN0000: [joplin]: [e[90m16:38:29e[39m] Using gulpfile ~\joplin\packages\app-cli\gulpfile.js
➤ YN0000: [joplin]: [e[90m16:38:29e[39m] Starting 'build'...
➤ YN0000: [joplin]: [e[90m16:38:29e[39m] Starting 'prepareBuild'...
➤ YN0000: [joplin]: [e[90m16:38:30e[39m] Finished 'prepareBuild' after 738 ms
➤ YN0000: [joplin]: [e[90m16:38:30e[39m] Finished 'build' after 748 ms
➤ YN0000: [joplin]: Process exited (exit code 0), completed in 10s 984ms
➤ YN0000: [@joplin/fork-htmlparser2]: Process started
➤ YN0000: [@joplin/app-mobile]: [e[90m16:38:40e[39m] Using gulpfile ~\joplin\packages\app-mobile\gulpfile.js
➤ YN0000: [@joplin/app-mobile]: [e[90m16:38:40e[39m] Starting 'build'...
➤ YN0000: [@joplin/app-mobile]: [e[90m16:38:40e[39m] Starting 'buildInjectedJs'...
➤ YN0000: [@joplin/app-mobile]: Building CodeMirror bundle...
➤ YN0000: [@joplin/fork-htmlparser2]: Process exited (exit code 0), completed in 14s 603ms
➤ YN0000: [@joplin/server]: Process started
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Using gulpfile ~\joplin\packages\server\gulpfile.js
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Starting 'build'...
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Starting 'compilePackageInfo'...
➤ YN0000: [@joplin/server]: Generated C:\Users\Divyanshu Parwal\joplin\packages\server/dist/packageInfo.js
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Finished 'compilePackageInfo' after 115 ms
➤ YN0000: [@joplin/server]: [e[90m16:38:54e[39m] Finished 'build' after 120 ms
➤ YN0000: [@joplin/server]: Process exited (exit code 0), completed in 10s 189ms
➤ YN0000: [@joplin/turndown]: Process started
➤ YN0000: [@joplin/turndown]: 
➤ YN0000: [@joplin/turndown]: src/turndown.js → lib/turndown.cjs.js...
➤ YN0000: [@joplin/turndown]: created lib/turndown.cjs.js in 651ms
➤ YN0000: [@joplin/turndown]: Process exited (exit code 0), completed in 3s 736ms
➤ YN0000: [@joplin/turndown-plugin-gfm]: Process started
➤ YN0000: [@joplin/turndown-plugin-gfm]: 
➤ YN0000: [@joplin/turndown-plugin-gfm]: src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
➤ YN0000: [@joplin/turndown-plugin-gfm]: created lib/turndown-plugin-gfm.cjs.js in 248ms
➤ YN0000: [@joplin/turndown-plugin-gfm]: Process exited (exit code 0), completed in 2s
➤ YN0000: [@joplin/app-mobile]: Creating: C:\Users\Divyanshu Parwal\joplin/packages/app-mobile/lib/rnInjectedJs/webviewLib.js
➤ YN0000: [@joplin/app-mobile]: Creating: C:\Users\Divyanshu Parwal\joplin/packages/app-mobile/lib/rnInjectedJs/CodeMirror.bundle.js
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:16e[39m] Finished 'buildInjectedJs' after 36 s
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:16e[39m] Starting 'encodeAssets'...
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:17e[39m] Finished 'encodeAssets' after 857 ms
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:17e[39m] Starting 'podInstall'...
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:17e[39m] Finished 'podInstall' after 884 μs
➤ YN0000: [@joplin/app-mobile]: [e[90m16:39:17e[39m] Finished 'build' after 37 s
➤ YN0000: [@joplin/app-mobile]: Process exited (exit code 0), completed in 50s 4ms
➤ YN0000: Done in 58s 397ms
    at makeError (C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\execa\lib\error.js:59:11)
    at handlePromise (C:\Users\Divyanshu Parwal\joplin\packages\tools\node_modules\execa\index.js:114:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async fn (C:\Users\Divyanshu Parwal\joplin\gulpfile.js:35:5)

I'm using windows 10, node version 16.13.1, yarn version 3.1.1

I think the problem is the space in your username, it has been seen a few times and a new entry has just been added to the BUILD.md as people keep coming across this.

Make sure the path to the project directory does not contain spaces or the build may fail.

And also Install Python 3

I have installed it already.

@Daeraxa I'm still getting the error as below. I have ensured that the path to the project directory does not contain spaces and have also installed python 3.

# This file contains the result of Yarn building a package (sqlite3@npm:4.2.0)
# Script name: install

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.11.0
node-pre-gyp info using node@16.13.1 | win32 | x64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp info check checked for "C:\Users\DP\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
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 
node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@16.13.1 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) 
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 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | win32 | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | win32 | x64
gyp info find Python using Python version 3.9.10 found at "C:\Users\DP\python.exe"
gyp info find VS using VS2017 (15.9.28307.1800) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\DP\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\DP\\joplin\\packages\\tools\\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\\DP\\joplin\\packages\\server\\node_modules\\sqlite3\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\DP\\joplin\\packages\\tools\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Divyanshu Parwal\\AppData\\Local\\node-gyp\\Cache\\16.13.1\\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\\Divyanshu Parwal\\AppData\\Local\\node-gyp\\Cache\\16.13.1',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\DP\\joplin\\packages\\tools\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\Divyanshu Parwal\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.13.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\DP\\joplin\\packages\\server\\node_modules\\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\\DP\\joplin\\packages\\server\\node_modules\\sqlite3\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\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.
  unpack_sqlite_dep
  Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\Users\DP\joplin\packages\server\node_modules\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\DP\joplin\packages\tools\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\DP\\joplin\\packages\\tools\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\DP\\joplin\\packages\\server\\node_modules\\sqlite3\\lib\\binding\\node-v93-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\DP\\joplin\\packages\\server\\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"
gyp ERR! cwd C:\Users\DP\joplin\packages\server\node_modules\sqlite3
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\DP\joplin\packages\tools\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\DP\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\DP\joplin\packages\server\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)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\DP\joplin\packages\tools\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1064:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Windows_NT 10.0.19043
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\DP\\joplin\\packages\\tools\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\DP\joplin\packages\server\node_modules\sqlite3
node-pre-gyp ERR! node -v v16.13.1
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok 
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\DP\joplin\packages\tools\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\DP\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\DP\joplin\packages\server\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)

Disable Python in "Manage App Execution Aliases"

Still getting the error

# This file contains the result of Yarn building a package (sqlite3@npm:4.2.0)
# Script name: install

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.11.0
node-pre-gyp info using node@16.13.1 | win32 | x64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp info check checked for "C:\Users\DP\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
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 
node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@16.13.1 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) 
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 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | win32 | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | win32 | x64
gyp info find Python using Python version 3.9.10 found at "C:\Users\DP\python.exe"
gyp info find VS using VS2017 (15.9.28307.1800) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\DP\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\DP\\joplin\\packages\\tools\\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\\DP\\joplin\\packages\\server\\node_modules\\sqlite3\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\DP\\joplin\\packages\\tools\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Divyanshu Parwal\\AppData\\Local\\node-gyp\\Cache\\16.13.1\\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\\Divyanshu Parwal\\AppData\\Local\\node-gyp\\Cache\\16.13.1',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\DP\\joplin\\packages\\tools\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\Divyanshu Parwal\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.13.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\DP\\joplin\\packages\\server\\node_modules\\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\\DP\\joplin\\packages\\server\\node_modules\\sqlite3\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\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.
  unpack_sqlite_dep
  'python' is not recognized as an internal or external command,
  operable program or batch file.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\DP\joplin\packages\server\node_modules\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\DP\joplin\packages\tools\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\DP\\joplin\\packages\\tools\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\DP\\joplin\\packages\\server\\node_modules\\sqlite3\\lib\\binding\\node-v93-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\DP\\joplin\\packages\\server\\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"
gyp ERR! cwd C:\Users\DP\joplin\packages\server\node_modules\sqlite3
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\DP\joplin\packages\tools\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\DP\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\DP\joplin\packages\server\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)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\DP\joplin\packages\tools\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1064:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Windows_NT 10.0.19043
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\DP\\joplin\\packages\\tools\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\DP\joplin\packages\server\node_modules\sqlite3
node-pre-gyp ERR! node -v v16.13.1
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok 
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\DP\joplin\packages\tools\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\DP\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\DP\joplin\packages\server\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)

What's the error if you manually run this?

C:\Program Files\nodejs\node.exe C:\Users\DP\joplin\packages\tools\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\DP\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\DP\joplin\packages\server\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

Looks like something's not right with your Python installation:

  'python' is not recognized as an internal or external command,
  operable program or batch file.

Add it to PATH maybe?

Still getting the same error after adding it to the path.

Just to be sure - did you restart your cmd/powershell/etc after adding this?

Try this once
npm config set python path_to_python.exe

It worked after restarting cmd. Thanks to everyone here for helping me out.