Build desktop app in VS Code (Windows) error

Hey guys, when I run yarn install from the root, the following errors comes in:

➤ 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-renderer 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 439ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 2ms
➤ 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.11 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: │ keytar@npm:7.7.0 must be built because it never has been before or the last one failed
➤ YN0007: │ sharp@npm:0.26.3 must be built because it never has been before or the last one failed
➤ YN0007: │ sqlite3@npm:5.0.2 [ea905] must be built because it never has been before or the last one failed
➤ YN0007: │ sharp@npm:0.25.4 must be built because it never has been before or the last one failed
➤ YN0007: │ lzma-native@npm:8.0.6 must be built because it never has been before or the last one failed
➤ YN0007: │ sqlite3@npm:4.2.0 must be built because it never has been before or the last one failed
➤ YN0009: │ sqlite3@npm:5.0.2 [ea905] couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-15dfa4d6\build.log)
➤ YN0009: │ sqlite3@npm:5.0.2 [ea905] couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-1fb0e221\build.log)
➤ YN0009: │ sqlite3@npm:4.2.0 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-e51b8699\build.log)
➤ YN0009: │ sqlite3@npm:5.0.2 [ea905] couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-f7963bfc\build.log)
➤ YN0009: │ lzma-native@npm:8.0.6 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-eb56d55f\build.log)
➤ YN0009: │ sqlite3@npm:5.0.2 [ea905] couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-06291fdd\build.log)
➤ YN0009: │ sharp@npm:0.26.3 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-1a013111\build.log)
➤ YN0009: │ sharp@npm:0.26.3 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-6546cf7e\build.log)
➤ YN0009: │ sharp@npm:0.25.4 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-42470b68\build.log)
➤ YN0009: │ keytar@npm:7.7.0 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-2cc864f1\build.log)
➤ YN0009: │ keytar@npm:7.7.0 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-f755dd40\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
➤ YN0007: │ @joplin/app-mobile@workspace:packages/app-mobile must be built because it never has been before or the last one failed
➤ YN0009: │ root@workspace:. couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-a82a4a90\build.log)
➤ YN0009: │ @joplin/app-mobile@workspace:packages/app-mobile couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-1d269209\build.log)
➤ YN0009: │ @joplin/app-desktop@workspace:packages/app-desktop couldn't be built successfully (exit code 1, logs can be found here: C:\Users\92475\AppData\Local\Temp\xfs-b1790829\build.log)
➤ YN0000: └ Completed in 11s 923ms
➤ YN0000: Failed with errors in 13s 517ms

This is my first time facing this type of open-source large project so I am not sure about many things, and am still learning, I will put the error log on here.

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

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'C:\Users\92475\OneDrive\妗岄潰\joplin\packages\tools\node_modules\node-pre-gyp\bin\node-pre-gyp'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

This is for "sqlite3" and most error log is similar to this. Error on "keytar" is a bit different:

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

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'C:\Users\92475\OneDrive\妗岄潰\joplin\packages\lib\node_modules\prebuild-install\bin.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> keytar@7.7.0 build
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.15.1 | win32 | x64
gyp info find Python using Python version 3.10.5 found at "C:\Users\92475\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe"
gyp ERR! find VS 
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS 
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS 
gyp ERR! configure error 
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\92475\OneDrive\桌面\joplin\packages\app-desktop\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
gyp ERR! stack     at C:\Users\92475\OneDrive\桌面\joplin\packages\app-desktop\node_modules\node-gyp\lib\find-visualstudio.js:75:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\92475\OneDrive\桌面\joplin\packages\app-desktop\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
gyp ERR! stack     at C:\Users\92475\OneDrive\桌面\joplin\packages\app-desktop\node_modules\node-gyp\lib\find-visualstudio.js:71:14
gyp ERR! stack     at C:\Users\92475\OneDrive\桌面\joplin\packages\app-desktop\node_modules\node-gyp\lib\find-visualstudio.js:384:16
gyp ERR! stack     at C:\Users\92475\OneDrive\桌面\joplin\packages\app-desktop\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack     at C:\Users\92475\OneDrive\桌面\joplin\packages\app-desktop\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:406:5)
gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "D:\\nodejs\\node.exe" "C:\\Users\\92475\\OneDrive\\桌面\\joplin\\packages\\app-desktop\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\92475\OneDrive\桌面\joplin\packages\app-desktop\node_modules\keytar
gyp ERR! node -v v16.15.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok 

I followed the BUILD.md instructions closely (well I ran into errors already in the first few steps so..), I'm not sure how would I fix issue like this.

Thank you very much.

I'm not sure if your path C:\Users\92475\OneDrive\妗岄潰\jop... leads to problems. Try to setup everything in a path without spaces and non ASCII chars, like c:\git\joplin.

Hi:

Yeah it used to be the path to the desktop but for some reason its in weird characters in this case. I moved the folder somewhere else and it worked now, thanks a lot!