Errors for yarn create @phaserjs/game on macOS and Linux (via Docker)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- docker, javascript, node.js
- 领域
- cli
调研方向
Start with package-lock.json and the package installation path used by yarn create @phaserjs/game; reproduce in the provided node:24 Docker container and compare with the working npm command. Trace the old @achrinza/node-ipc dependency and the generated executable's node\r failure. Done means the Yarn command works on macOS and Linux without either error.
由索引模型根据 Issue 内容生成。
描述
I'm encountering errors when trying to install via yarn on macOS, both on the host machine and Docker.
When I try on my Windows host machine, there's no error and the tool runs as expected. However, trying to run it in Docker on Windows (via WSL) results in the same error as in Docker on macOS.
The npm version of the command is working alright in these environments.
Expected Result
Running yarn create @phaserjs/game should result in the experience as described on https://phaser.io/tutorials/create-game-app, such as when running npm create @phaserjs/game@latest which I can confirm works as expected.
Actual Results
Two different errors are observed on a macOS host machine and when using Docker on macOS and Windows.
Details
Environment
- OS: macOS Tahoe 26.3.1
- Processor: Apple M1 Max
- Node: v24.14.1
Result
$ yarn create @phaserjs/game
yarn create v1.22.22
(node:5134) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error @achrinza/[email protected]: The engine "node" is incompatible with this module. Expected version "8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18". Got "24.14.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
Notes
The main issue in this case appears to be achrinza/[email protected] wants way too old of a version of node. Not sure where this dependency is coming from as it is not mentioned in package-json.lock.
Environment
- OS: Debian 12, Official Node Docker image (from macOS and Windows host machines)
- Processor: Apple M1 Max (macOS), Intel Core i7 (Windows 11)
- Node: v24.14.1
Result
node@a387d937ba78:~$ yarn create @phaserjs/game
yarn create v1.22.22
(node:275) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "@phaserjs/[email protected]" with binaries:
- create-game
/usr/bin/env: 'node\r': No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
error Command failed.
Exit code: 127
Command: /home/node/.yarn/bin/create-game
Arguments:
Directory: /home/node
Output:
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
Notes
I also got the /usr/bin/env: 'node\r': No such file or directory when using Node 18 on macOS, in my attempt to appease the "incompatible with this module" error.
Notice how that DeprecationWarning: url.parse() shows up in either environment. I think there's something up with the create utility and yarn because as an additional test, I tried running the once famous yarn create react-appcommand to compare and it also had that "DeprecationWarning", but it completed successfully.
Testing
The best way to test might be with Docker, for the most portable experience.
Recommended Instructions
- Install Docker for Mac/Windows
- Run
docker run -it --name my-node node:24 su - nodeto create an official node Docker container using version 24, which will start you on a bash terminal as thenodeuser- Optionally add
--rmto remove the container after exiting out of the bash session
- Optionally add
- Confirm that
corepackandyarnare installed such as withwhich yarnandwhich corepack - Run
yarn create @phaserjs/gameand observe the results
To repeat, I'm able to run npm create @phaserjs/game@latest with no issue and then convert the project to yarn afterwards. I've not tried the other commands such as for pnpm, bun, etc.
- 主要语言
- JavaScript
- 星标
- 73
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
phaserjs/create-game 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
phaserjs/create-game#11 ·
查看 phaserjs/create-game 的全部 Issue
相似的 Issue
-
channels:edit check:passed
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
fix
难度 2/5 1-3 小时 新手友好度 68/100
idean3885/claude-ops-agent#1083 ·
维护者通常 1 天内回复
-
入群码过期未关闭
难度 1/5 1 小时以内 新手友好度 84/100
aliyun/ai-agent-handbook#29 · 1 条评论 ·
-
docs documentation need-triage SaaS
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
apache/cloudstack#14719 ·
维护者通常 1 天内回复