51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 860|回复: 5
打印 上一主题 下一主题

运行 vue-element-admin 时报错的问题

[复制链接]
  • TA的每日心情
    无聊
    3 小时前
  • 签到天数: 528 天

    连续签到: 1 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2021-1-22 09:13:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    下载了vue-element-admin,在本地npm insatall后npm run dev后报错。删除node_modules后重置也不行
    1. C:\Users\Le'novo\Desktop\project\vue-element-admin>npm run dev

    2. vue-element-admin@4.4.0 dev C:\Users\Le'novo\Desktop\project\vue-element-admin
    3. vue-cli-service serve

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

    6. DONE Compiled successfully in 23484ms 15:55:03

    7. App running at:

    8. Local: http://localhost:9527/

    9. Network: unavailable

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

    12. events.js:288
    13. throw er; // Unhandled 'error' event
    14. ^

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

    36. npm ERR! A complete log of this run can be found in:
    37. npm ERR! D:\nodejs\node_cache_logs\2020-07-02T07_55_03_271Z-debug.log



    38. 报错日志

    39. 0 info it worked if it ends with ok
    40. 1 verbose cli [
    41. 1 verbose cli 'C:\Program Files\nodejs\node.exe',
    42. 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
    43. 1 verbose cli 'run',
    44. 1 verbose cli 'dev'
    45. 1 verbose cli ]
    46. 2 info using npm@6.13.4
    47. 3 info using node@v12.16.1
    48. 4 verbose run-script [ 'predev', 'dev', 'postdev' ]
    49. 5 info lifecycle vue-element-admin@4.4.0~predev: vue-element-admin@4.4.0
    50. 6 info lifecycle vue-element-admin@4.4.0~dev: vue-element-admin@4.4.0
    51. 7 verbose lifecycle vue-element-admin@4.4.0~dev: unsafe-perm in lifecycle true
    52. 8 verbose lifecycle vue-element-admin@4.4.0~dev: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Le'novo\Desktop\project\vue-element-admin\node_modules.bin;C:\redis;C:\Program Files\nodejs\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\nodejs\node_global;C:\Program Files\nodejs\node_global\node_modules\yarn\bin;C:\Program Files\nodejs\node_global;C:\Program Files\nodejs\node_global\node_modules\cnpm\bin;C:\Users\Le'novo\AppData\Local\Microsoft\WindowsApps;"C:\Users\Le'novo\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\nodejs\node_global\node_modules";C:\redis;C:\Users\Le'novo\AppData\Roaming\npm;C:\Program Files\nodejs\node_global\;C:\Program Files\nodejs\node_modules;C:\Program Files\nodejs\node_global\node_modules\yarn\bin;
    53. 9 verbose lifecycle vue-element-admin@4.4.0~dev: CWD: C:\Users\Le'novo\Desktop\project\vue-element-admin
    54. 10 silly lifecycle vue-element-admin@4.4.0~dev: Args: [ '/d /s /c', 'vue-cli-service serve' ]
    55. 11 silly lifecycle vue-element-admin@4.4.0~dev: Returned: code: 1 signal: null
    56. 12 info lifecycle vue-element-admin@4.4.0~dev: Failed to exec dev script
    57. 13 verbose stack Error: vue-element-admin@4.4.0 dev:vue-cli-service serve
    58. 13 verbose stack Exit status 1
    59. 13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
    60. 13 verbose stack at EventEmitter.emit (events.js:311:20)
    61. 13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
    62. 13 verbose stack at ChildProcess.emit (events.js:311:20)
    63. 13 verbose stack at maybeClose (internal/child_process.js:1021:16)
    64. 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
    65. 14 verbose pkgid vue-element-admin@4.4.0
    66. 15 verbose cwd C:\Users\Le'novo\Desktop\project\vue-element-admin
    67. 16 verbose Windows_NT 10.0.17763
    68. 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "dev"
    69. 18 verbose node v12.16.1
    70. 19 verbose npm v6.13.4
    71. 20 error code ELIFECYCLE
    72. 21 error errno 1
    73. 22 error vue-element-admin@4.4.0 dev:vue-cli-service serve
    74. 22 error Exit status 1
    75. 23 error Failed at the vue-element-admin@4.4.0 dev script.
    76. 23 error This is probably not a problem with npm. There is likely additional logging output above.
    77. 24 verbose exit [ 1, true ]
    复制代码


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    2024-10-22 14:23
  • 签到天数: 1007 天

    连续签到: 1 天

    [LV.10]测试总司令

    2#
    发表于 2021-1-25 09:27:56 | 只看该作者
    把npm ERR! D:\nodejs\node_cache_logs\2020-07-02T07_55_03_271Z-debug.log   这个log信息发上来看看。
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2024-9-30 15:02
  • 签到天数: 751 天

    连续签到: 2 天

    [LV.10]测试总司令

    3#
    发表于 2021-1-25 09:33:27 | 只看该作者
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    3 小时前
  • 签到天数: 1517 天

    连续签到: 1 天

    [LV.Master]测试大本营

    4#
    发表于 2021-1-25 10:35:15 | 只看该作者
    完整重装下
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    5 小时前
  • 签到天数: 2813 天

    连续签到: 1 天

    [LV.Master]测试大本营

    5#
    发表于 2021-1-25 15:08:25 | 只看该作者
    感觉这么多呢
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    4 小时前
  • 签到天数: 992 天

    连续签到: 1 天

    [LV.10]测试总司令

    6#
    发表于 2021-1-25 17:10:04 | 只看该作者
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-18 13:46 , Processed in 0.067463 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表