PanJiaChen / vue-element-admin

:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin
MIT License
87.98k stars 30.47k forks source link

第一次安装然后npm run dev 就报错了 #3282

Open wsas845 opened 4 years ago

wsas845 commented 4 years ago

`> vue-element-admin@4.4.0 dev /mnt/d/h5/vue-element-admin

vue-cli-service serve

INFO Starting development server... 98% after emitting CopyPlugin

DONE Compiled successfully in 18824ms 3:47:42 PM

App running at:

events.js:287 throw er; // Unhandled 'error' event ^

Error: spawn cmd.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19) at onErrorNT (internal/child_process.js:469:16) at processTicksAndRejections (internal/process/task_queues.js:84:21) Emitted 'error' event on ChildProcess instance at: at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12) at onErrorNT (internal/child_process.js:469:16) at processTicksAndRejections (internal/process/task_queues.js:84:21) { errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn cmd.exe', path: 'cmd.exe', spawnargs: [ '/c', 'start', '""', '/b', 'http://localhost:9527/' ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-element-admin@4.4.0 dev: vue-cli-service serve npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-element-admin@4.4.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-06-24T07_47_42_933Z-debug.log`

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

image

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

zehuichan commented 4 years ago

@wsas845 问题解决了吗

PanJiaChen commented 4 years ago

https://github.com/vuejs/vue-cli/issues/4125

MrCrazyLeo commented 4 years ago

package里边一个chokidar要改成"^2.1.5",默认那个不支持node版本>8以上的。删除node__modules再npm重装。

dingsr commented 3 years ago

解决了吗? 我的报错和你一样,我在系统环境变量的path中添加C:\windows\system32 ,可以试试,