Skip to content

egg-bin不能传递node参数问题 #5615

@GeorgeChan

Description

@GeorgeChan

在此输入你需要反馈的 Bug 具体信息(Bug in Detail):

egg-bin@5 时,支持通过 --node-options--stack-size 参数向 node 传递参数:

{
  "scripts": {
    "dev": "egg-bin --node-options--stack-size=3000 dev",
  },
  "devDependencies": {
    "egg-bin": "^5"
  }
} 

但是升级到egg-bin@6 后,运行则报错:

> egg-bin --node-options--stack-size=3000 dev
 Unknown options: --node-options--stack-size, try 'egg-bin dev --help' for more information.

可复现问题的仓库地址(Reproduction Repo)

(base) PS D:\egg-test> npm ll
[email protected]
| D:\egg-test
|
+-- [email protected]
|
+-- [email protected]
|
+-- [email protected]
|
+-- [email protected]
|
+-- [email protected]
|
`-- [email protected]


(base) PS D:\egg-test> npm run dev

> [email protected] dev
> egg-bin --node-options--stack-size=3000 dev

[egg-ts-helper] create typings\app\controller\index.d.ts (1ms)
[egg-ts-helper] create typings\config\index.d.ts (10ms)
[egg-ts-helper] create typings\config\plugin.d.ts (1ms)
[egg-ts-helper] create typings\app\index.d.ts (0ms)

 Unknown options: --node-options--stack-size, try 'egg-bin dev --help' for more information.

egg-test.zip

Node 版本号:

22.14.0

Eggjs 版本号:

3.31.0

相关插件名称与版本号(PlugIn and Name):

egg-bin: 5.14.0

操作平台与版本号(Platform and Version):

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions