puter icon indicating copy to clipboard operation
puter copied to clipboard

Unable to Run on Windows 11 with Node 21

Open rajivraghu opened this issue 10 months ago • 6 comments

PS C:\POC\PuterOs\puter> npm install
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: This package is now deprecated. Move to @xterm/addon-fit instead.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: 16.1.1
npm WARN deprecated [email protected]: This package is now deprecated. Move to @xterm/xterm instead.

> [email protected] postinstall
> cd packages/phoenix && cd packages/contextlink && npm install && cd - && cd packages/strataparse && npm install && cd - && cd packages/pty && npm install


added 77 packages, changed 1 package, and audited 82 packages in 2s

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

found 0 vulnerabilities
The system cannot find the path specified.
npm ERR! code 1
npm ERR! path C:\POC\PuterOs\puter
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c cd packages/phoenix && cd packages/contextlink && npm install && cd - && cd packages/strataparse && npm install && cd - && cd packages/pty && npm install

After this npm start , This will not start properly..

image

Blank UI

rajivraghu avatar Apr 17 '24 03:04 rajivraghu

I have the same issue! I haven't figured the solution out yet, but I'll try looking into it and posting it here.

RobertLupas avatar Apr 20 '24 19:04 RobertLupas

This is related to the problem in #208, which has a pending pull request (#215) to fix the issue. But I don't think that this also fixes

npm ERR! code 1
npm ERR! path path\to\puter\repo
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c cd packages/phoenix && cd packages/contextlink && npm install && cd - && cd packages/strataparse && npm install && cd - && cd packages/pty && npm install

RobertLupas avatar Apr 20 '24 20:04 RobertLupas

The PR you mentioned breaks production deployment so we can't merge it, but I think the issue you're experiencing is different. I suspect the issue you're encountering is a Windows-specific failure, since we don't see much testing under Windows environments.

My recommendations are to try under Docker, try under WSL or Linux, or if you contribute a fix for Windows we will merge it. If you try any of these let us know how it goes so we can rule out anything that isn't specific to Windows.

KernelDeimos avatar Apr 20 '24 23:04 KernelDeimos

I also experienced this issue, I manage to fix it by changing the postinstall script in the main package.json file. cd packages/phoenix && cd packages/contextlink && npm install && cd ../../packages/strataparse && npm install && cd ../../packages/pty && npm install

sakhimpungose avatar Apr 21 '24 03:04 sakhimpungose

I also experienced this issue, I manage to fix it by changing the postinstall script in the main package.json file. cd packages/phoenix && cd packages/contextlink && npm install && cd ../../packages/strataparse && npm install && cd ../../packages/pty && npm install

This works for the package installation on Windows, but running puter locally on Windows still seems to break it. Instead, I use WSL for puter development.

Eric-Lighthall avatar Apr 21 '24 05:04 Eric-Lighthall

The earlier comment fixes the install problem (but && cd ../.. should be added). When running puter it serves the wrong directory for static files:

paper.webp:1 Failed to load resource: the server responded with a status of 404 (Not Found) initgui.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) helpers.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) IPC.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) globals.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) i18n.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) index.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)

These are all attempted be loaded from /src, however files are present at / I am however not able to find where or why this problem occurs :-(

phook avatar Apr 22 '24 12:04 phook

This has been finally fixed 😭 Puter should now run in Windows without issues.

jelveh avatar Jul 17 '24 20:07 jelveh