I've tried several times to install Arduino IDE and keep having the same problem. According to the output from the power shell, it starts looking for a file in a location that doesn't exist.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\kcroo\AppData\Local\Programs\arduino-ide> & ".\Arduino IDE"
PS C:\Users\kcroo\AppData\Local\Programs\arduino-ide>
Arduino IDE 2.2.1
Checking for frontend application configuration customizations. Module path: C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.2.1" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.34.0" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2023-08-31T14:35:44.802Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.2.1","cliVersion":"0.34.0","buildDate":"2023-08-31T14:35:44.802Z"}
Starting backend process. PID: 12908
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/kcroo/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-02-03T16:25:56.704Z root INFO Backend Object.initialize: 3.4 ms [Finished 0.384 s after backend start]
2024-02-03T16:25:56.707Z root INFO Backend Object.configure: 2.9 ms [Finished 0.384 s after backend start]
2024-02-03T16:25:56.707Z root INFO Backend a.onStart: 1.0 ms [Finished 0.384 s after backend start]
2024-02-03T16:25:56.707Z root INFO Backend a.configure: 0.2 ms [Finished 0.400 s after backend start]
2024-02-03T16:25:56.708Z root INFO Backend u.onStart: 0.2 ms [Finished 0.400 s after backend start]
2024-02-03T16:25:56.709Z root INFO Backend d.configure: 0.1 ms [Finished 0.400 s after backend start]
2024-02-03T16:25:56.710Z root INFO Backend d.initialize: 16.6 ms [Finished 0.401 s after backend start]
2024-02-03T16:25:56.710Z root INFO Backend c.onStart: 0.2 ms [Finished 0.401 s after backend start]
2024-02-03T16:25:56.711Z root INFO Backend s.configure: 2.8 ms [Finished 0.404 s after backend start]
2024-02-03T16:25:56.712Z config INFO >>> Initializing CLI configuration...
2024-02-03T16:25:56.712Z root INFO Backend c.initialize: 0.4 ms [Finished 0.404 s after backend start]
2024-02-03T16:25:56.713Z root INFO Backend P.onStart: 0.7 ms [Finished 0.404 s after backend start]
2024-02-03T16:25:56.713Z config INFO Loading CLI configuration from c:\Users\kcroo\.arduinoIDE\arduino-cli.yaml...
2024-02-03T16:25:56.714Z daemon INFO Starting daemon from C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
2024-02-03T16:25:56.714Z root INFO Backend s.initialize: 0.2 ms [Finished 0.405 s after backend start]
2024-02-03T16:25:56.714Z root INFO Backend w.onStart: 1.0 ms [Finished 0.406 s after backend start]
2024-02-03T16:25:56.715Z root INFO Backend r.configure: 2.2 ms [Finished 0.407 s after backend start]
2024-02-03T16:25:56.715Z discovery-log INFO start
2024-02-03T16:25:56.715Z discovery-log INFO start new deferred
2024-02-03T16:25:56.715Z root INFO Backend d.initialize: 0.3 ms [Finished 0.407 s after backend start]
2024-02-03T16:25:56.715Z root INFO Backend y.onStart: 1.8 ms [Finished 0.409 s after backend start]
2024-02-03T16:25:56.716Z root INFO Backend r.configure: 1.7 ms [Finished 0.409 s after backend start]
2024-02-03T16:25:56.716Z root INFO Backend s.onStart: 0.5 ms [Finished 0.411 s after backend start]
2024-02-03T16:25:56.716Z root INFO Backend h.configure: 0.6 ms [Finished 0.411 s after backend start]
2024-02-03T16:25:56.716Z root INFO Backend a.configure: 0.5 ms [Finished 0.412 s after backend start]
2024-02-03T16:25:56.716Z root INFO Backend s.configure: 0.1 ms [Finished 0.412 s after backend start]
2024-02-03T16:25:56.716Z root INFO Backend l.configure: 0.1 ms [Finished 0.413 s after backend start]
2024-02-03T16:25:56.719Z root INFO Theia app listening on http://localhost:50233.
2024-02-03T16:25:56.719Z root INFO Finished starting backend application: 3.8 ms [Finished 0.415 s after backend start]
2024-02-03T16:25:56.720Z root WARN The local plugin referenced by local-dir:/c%3A/Users/kcroo/.arduinoIDE/plugins does not exist.
2024-02-03T16:25:56.720Z root WARN The local plugin referenced by local-dir:/c%3A/Users/kcroo/.arduinoIDE/extensions does not exist.
2024-02-03T16:25:56.720Z root WARN The local plugin referenced by local-dir:C:\Users\kcroo\.arduinoIDE\plugins does not exist.
2024-02-03T16:25:56.743Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\User\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\User\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\User\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-02-03T16:25:56.744Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-02-03T16:25:56.744Z config INFO Loaded the CLI configuration.
2024-02-03T16:25:56.799Z config WARN Could not ensure user directory existence: C:\Users\User\Documents\Arduino Error: EPERM: operation not permitted, mkdir 'C:\Users\User'
2024-02-03T16:25:56.800Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/User/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/User/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-02-03T16:25:56.800Z config INFO Validating the CLI configuration...
2024-02-03T16:25:56.800Z root ERROR Check accessible failed for input: C:\Users\User\Documents\Arduino Error: ENOENT: no such file or directory, scandir 'C:\Users\User\Documents\Arduino'
2024-02-03T16:25:56.800Z config ERROR Failed to initialize the CLI configuration. Error: InvalidConfigError:
- Could not access the sketchbook location at 'C:\Users\User\Documents\Arduino': Error: ENOENT: no such file or directory, scandir 'C:\Users\User\Documents\Arduino'
at P.validateCliConfig (C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:579517)
at async P.initConfig (C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:577336)
2024-02-03T16:25:56.814Z root INFO Resolve plugins list: 100.2 ms [Finished 0.510 s after backend start]
2024-02-03T16:25:56.933Z daemon INFO Error: invalid path creating config dir: C:\Users\User\AppData\Local\Arduino15 error: mkdir C:\Users\User: Access is denied.
2024-02-03T16:25:56.933Z daemon ERROR Error: Error: invalid path creating config dir: C:\Users\User\AppData\Local\Arduino15 error: mkdir C:\Users\User: Access is denied.
at Socket.<anonymous> (C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:46588)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-02-03T16:25:56.933Z daemon INFO Starting daemon from C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
2024-02-03T16:25:56.935Z daemon INFO Daemon exited with exit code: 7.
2024-02-03T16:25:57.123Z daemon INFO Error: invalid path creating config dir: C:\Users\User\AppData\Local\Arduino15 error: mkdir C:\Users\User: Access is denied.
2024-02-03T16:25:57.124Z daemon ERROR Error: Error: invalid path creating config dir: C:\Users\User\AppData\Local\Arduino15 error: mkdir C:\Users\User: Access is denied.
at Socket.<anonymous> (C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:46588)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-02-03T16:25:57.124Z daemon INFO Starting daemon from C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
2024-02-03T16:25:57.124Z daemon INFO Daemon exited with exit code: 7.
2024-02-03T16:25:57.271Z daemon INFO Error: invalid path creating config dir: C:\Users\User\AppData\Local\Arduino15 error: mkdir C:\Users\User: Access is denied.
2024-02-03T16:25:57.272Z daemon ERROR Error: Error: invalid path creating config dir: C:\Users\User\AppData\Local\Arduino15 error: mkdir C:\Users\User: Access is denied.
at Socket.<anonymous> (C:\Users\kcroo\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:46588)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
The "C:\Users\User" directory doesn't exist on my computer and I cannot figure out how to fix this issue.
Thanks for any creative solutions