输入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/' ]
}
没有改动过文件,都是按照教程来的。不能访问8080,说localhost 拒绝了我们的连接请求。
@dexianyincha 把node_moudel目录删了重新install试试