输入npm run dev后node:events:368和errno: -4058, code: 'ENOENT',是怎么回事?

发布于 2022-05-06 22:06:14

输入npm run dev之后出现这个,是怎么回事

django-vue-admin@2.0.1 dev
npm run serve
django-vue-admin@2.0.1 serve
vue-cli-service serve --open

INFO Starting development server...
67% building 748/778 modules 30 active ...e_modulesd2p-extendssrcfile-uploaderlibcropperindex.vueD
eprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sas
s 2.0.0.

Recommendation: math.div($paddingLR, 2) or calc($paddingLR / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div


55 │ $rightOuter: $paddingLR / 2;
│ ^^^^^^^^^^^^^^

stdin 55:16  root stylesheet

95% emitting ThemeColorReplacerExtracted theme color css content length: 22335
98% after emitting CopyPlugin

DONE Compiled successfully in 8230ms 下午5:51:06

App running at:

Note that the development build is not optimized.
To create a production build, run npm run build.

node:events:368

  throw er; // Unhandled 'error' event
  ^

Error: spawn cmd ENOENT

at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)

Emitted 'error' event on ChildProcess instance at:

at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {

errno: -4058,
code: 'ENOENT',
syscall: 'spawn cmd',
path: 'cmd',
spawnargs: [ '/c', 'start', '""', '/b', 'http://localhost:8080/' ]
}
D:django-vue-adminweb>npm run dev

django-vue-admin@2.0.1 dev
npm run serve
django-vue-admin@2.0.1 serve
vue-cli-service serve --open

69% building 2067/2077 modules 10 active D:django-vue-adminwebnode_modulescore-jsinternalsstring-punycode-to-ascii.jsDeprecation Warning: Using / for division o
utside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($paddingLR, 2) or calc($paddingLR / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div


55 │ $rightOuter: $paddingLR / 2;
│ ^^^^^^^^^^^^^^

stdin 55:16  root stylesheet

95% emitting ThemeColorReplacerExtracted theme color css content length: 22335
98% after emitting CopyPlugin

DONE Compiled successfully in 9439ms 下午9:27:38

App running at:

Note that the development build is not optimized.
To create a production build, run npm run build.

node:events:368

  throw er; // Unhandled 'error' event
  ^

Error: spawn cmd ENOENT

at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)

Emitted 'error' event on ChildProcess instance at:

at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {

errno: -4058,
code: 'ENOENT',
syscall: 'spawn cmd',
path: 'cmd',
spawnargs: [ '/c', 'start', '""', '/b', 'http://localhost:8080/' ]
}

查看更多

关注者
0
被浏览
1.1k
1 个回答
hongzai
hongzai 认证专家 2022-05-06
life is coding,外包,远程协助,咨询添加微信:H0nGzA1

你有改动过文件吗,访问地址看看能否打开?

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览