Skip to content

[Bug]: wmic path Win32_NetworkAdapterConfiguration where IPEnabled=true get DefaultIPGateway,GatewayCostMetric,IPConnectionMetric,Index /format:table #83

@tungtrieu0801

Description

@tungtrieu0801

System Info

I got a problem when run command: npm run dev.

Details

I got a problem when run command: npm run dev.
PS D:\lynx\test> npm run dev

[email protected] dev
rspeedy dev

Rspeedy v0.8.2 (Rsbuild v1.2.11, Rspack v1.2.3)

error Command failed with exit code 1: wmic path Win32_NetworkAdapterConfiguration where IPEnabled=true get DefaultIPGateway,GatewayCostMetric,IPConnectionMetric,Index /format:table
'wmic' is not recognized as an internal or external command,
operable program or batch file.
at makeError (file:///D:/lynx/test/node_modules/execa/lib/error.js:60:11)
at handlePromise (file:///D:/lynx/test/node_modules/execa/index.js:124:26)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async promise (file:///D:/lynx/test/node_modules/default-gateway/index.js:122:22)
at async file:///D:/lynx/test/node_modules/@lynx-js/rspeedy/lib/plugins/dev.plugin.js:102:33
at async findIp (file:///D:/lynx/test/node_modules/@lynx-js/rspeedy/lib/plugins/dev.plugin.js:100:21)
at async Object.setup (file:///D:/lynx/test/node_modules/@lynx-js/rspeedy/lib/plugins/dev.plugin.js:14:46)
at async initPlugins (file:///D:/lynx/test/node_modules/@rsbuild/core/dist/index.js:1327:9)
at async initRsbuildConfig (file:///D:/lynx/test/node_modules/@rsbuild/core/dist/index.js:4286:5)
at async Object.createDevServer (file:///D:/lynx/test/node_modules/@rsbuild/core/dist/index.js:5659:26)

Reproduce link

No response

Reproduce Steps

  1. npm run dev
    And i got this
    PS D:\lynx\test> npm run dev

[email protected] dev
rspeedy dev

Rspeedy v0.8.2 (Rsbuild v1.2.11, Rspack v1.2.3)

error Command failed with exit code 1: wmic path Win32_NetworkAdapterConfiguration where IPEnabled=true get DefaultIPGateway,GatewayCostMetric,IPConnectionMetric,Index /format:table
'wmic' is not recognized as an internal or external command,
operable program or batch file.
at makeError (file:///D:/lynx/test/node_modules/execa/lib/error.js:60:11)
at handlePromise (file:///D:/lynx/test/node_modules/execa/index.js:124:26)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async promise (file:///D:/lynx/test/node_modules/default-gateway/index.js:122:22)
at async file:///D:/lynx/test/node_modules/@lynx-js/rspeedy/lib/plugins/dev.plugin.js:102:33
at async findIp (file:///D:/lynx/test/node_modules/@lynx-js/rspeedy/lib/plugins/dev.plugin.js:100:21)
at async Object.setup (file:///D:/lynx/test/node_modules/@lynx-js/rspeedy/lib/plugins/dev.plugin.js:14:46)
at async initPlugins (file:///D:/lynx/test/node_modules/@rsbuild/core/dist/index.js:1327:9)
at async initRsbuildConfig (file:///D:/lynx/test/node_modules/@rsbuild/core/dist/index.js:4286:5)
at async Object.createDevServer (file:///D:/lynx/test/node_modules/@rsbuild/core/dist/index.js:5659:26)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions