claudecodeui
claudecodeui copied to clipboard
WIndows WSL not working
$ npm run dev
[email protected] dev concurrently --kill-others "npm run server" "npm run client"
[0]
[0] > [email protected] server
[0] > node server/index.js
[0]
[1]
[1] > [email protected] client
[1] > vite --host
[1]
[0] No .env file found or error reading it: ENOENT: no such file or directory, open '/mnt/m/.prg/AI/others/Claude_Code_UI/claudecodeui/.env'
[0] PORT from env: undefined
[1] The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
[1]
[1] VITE v5.4.19 ready in 1543 ms
[1]
[1] ➜ Local: http://localhost:3001/
[1] ➜ Network: http://10.255.255.254:3001/
[1] ➜ Network: http://172.23.31.12:3001/
[0] innerError Error: Cannot find module '../build/Debug/pty.node'
[0] Require stack:
[0] - /mnt/m/.prg/AI/others/Claude_Code_UI/claudecodeui/node_modules/.pnpm/[email protected]/node_modules/node-pty/lib/unixTerminal.js
[0] - /mnt/m/.prg/AI/others/Claude_Code_UI/claudecodeui/node_modules/.pnpm/[email protected]/node_modules/node-pty/lib/index.js
[0] - /mnt/m/.prg/AI/others/Claude_Code_UI/claudecodeui/server/index.js
[0] at Function._resolveFilename (node:internal/modules/cjs/loader:1405:15)
[0] at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
[0] at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
[0] at Function._load (node:internal/modules/cjs/loader:1215:37)
[0] at TracingChannel.traceSync (node:diagnostics_channel:322:14)
[0] at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
[0] at Module.require (node:internal/modules/cjs/loader:1491:12)
[0] at require (node:internal/modules/helpers:135:16)
[0] at Object.
@vruzin Could you try again fresh with v1.2.0?
Your error log shows: No .env file found or error reading it: ENOENT: no such file or directory, open '/mnt/m/.prg/AI/others/Claude_Code_UI/claudecodeui/.env'
What to do:
Make sure you have a .env file in your project root (claudecodeui/).
If you see a file called .env.example (or similar), copy it to .env and update values as needed.
Watch Out for Filesystem Issues (WSL/SSD/Windows vs Linux) Why: You mentioned your project directory is on an SSD, likely mounted as a Windows drive in WSL (/mnt/m/). Node/npm tooling (especially file watching and native builds) can be unreliable on non-native Linux filesystems in WSL.
Common Symptoms:
Hot/cold reload doesn't work,
"Strange" or random errors with npm, pnpm, or native node modules,
File watchers fail to detect changes,
Native module rebuilds break mysteriously.
Solution:
Move your project to your Linux home directory inside WSL. This is typically /home/your-username/.
claude code now support window without wsl
claude code now support window without wsl
I successfully installed Claude Code 1.0.51 on Windows 11 without using WSL. However, when I attempted to install the Claude Code UI, I encountered the following errors:
PS D:\github\test3> git clone https://github.com/siteboon/claudecodeui.git PS D:\github\test3> cd claudecodeui PS D:\github\test3\claudecodeui> npm install npm warn deprecated [email protected]: This package is now deprecated. Move to @xterm/addon-fit instead. npm warn deprecated [email protected]: This package is now deprecated. Move to @xterm/xterm instead. npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup '\\?\D:\github\test3\claudecodeui\node_modules', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'D:\github\test3\claudecodeui\node_modules@xterm\xterm'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'D:\github\test3\claudecodeui\node_modules\@xterm\xterm' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 1 npm error path D:\github\test3\claudecodeui\node_modules@anthropic-ai\claude-code npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/preinstall.js npm error Error: Claude Code is not supported on Windows. npm error Claude Code requires macOS or Linux to run properly. npm error If you are using WSL (Windows Subsystem for Linux): npm error 1. Make sure you are running npm install from within the WSL terminal, not from PowerShell or CMD npm error 2. If you're still seeing this message in WSL, your environment may be incorrectly reporting as Windows npm error Please visit https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#check-system-requirements for troubleshooting information. npm error A complete log of this run can be found in: C:\Users\simon\AppData\Local\npm-cache_logs\2025-07-14T05_48_44_761Z-debug-0.log
I reinstalled everything using WSL on Windows 11, and the Claude Code UI is now working successfully. (I did need to update my Node.js.)
WSL version: 2.5.9.0 Kernel version: 6.6.87.2-1 Windows11 23H2 Node v22.17.0 Claude Code 1.0.48
Hey y'all, just adding another voice here. I also got it working by installing, in my case, v20.19.3.
I recommend adding a note in the readme that it's not compatible with anything higher than 22.
Hey y'all, just adding another voice here. I also got it working by installing, in my case, v20.19.3.
I recommend adding a note in the readme that it's not compatible with anything higher than 22.
You use wsl or window only?
Works for me on windows 10 wsl2 Ubuntu.