katiton 2021-03-31 23:19 采纳率: 100%
浏览 354
已采纳

vue cli 执行 npm run dev 报错

npm run dev 后Terminal输出如下:

D:\work\IdeaProjects\goldisc_vue\work\edc-ui>npm run dev

> gd-label-ui@4.2.1 dev D:\work\IdeaProjects\goldisc_vue\work\edc-ui
> vue-cli-service serve

 ERROR  TypeError: Cannot read property 'lintStyleOnBuild' of undefined
TypeError: Cannot read property 'lintStyleOnBuild' of undefined
    at module.exports (D:\work\IdeaProjects\goldisc_vue\work\edc-ui\node_modules\@winner-fed\vue-cli-plugin-stylelint\index.js:7:28)
    at D:\work\IdeaProjects\goldisc_vue\work\edc-ui\node_modules\@vue\cli-service\lib\Service.js:78:7
    at Array.forEach (<anonymous>)
    at Service.init (D:\work\IdeaProjects\goldisc_vue\work\edc-ui\node_modules\@vue\cli-service\lib\Service.js:76:18)
    at Service.run (D:\work\IdeaProjects\goldisc_vue\work\edc-ui\node_modules\@vue\cli-service\lib\Service.js:215:10)
    at Object.<anonymous> (D:\work\IdeaProjects\goldisc_vue\work\edc-ui\node_modules\@vue\cli-service\bin\vue-cli-service.js:36:9)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gd-label-ui@4.2.1 dev: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gd-label-ui@4.2.1 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!     C:\Users\12946\AppData\Roaming\npm-cache\_logs\2021-03-31T14_42_47_024Z-debug.log

 请问该如何解决?(已尝试过删除node_modules,重新npm install,但无效果)

前端新人求帮助,新号啥都没有希望大佬们不要嫌弃,帮帮忙,谢谢,谢谢,谢谢。

  • 写回答

3条回答 默认 最新

查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥30 微信小程序请求失败,网页能正常带锁访问
  • ¥15 对语音信号进行变调时,间接改变时序从而实现语音变速,进而将变调与变速同时实现、参数合成法换为波形合成法
  • ¥30 德飞莱51单片机实现C4炸弹
  • ¥50 CrossLink-LIF-MD6000 型 FPGA 的 CMOS 转 MIPI D-PHY IP 核功能使用异常
  • ¥15 proteus控制16x16LED点阵显示屏的设计
  • ¥30 求会做山景bp1048b2程序的。做直播声卡用
  • ¥15 求数学建模论文问题指导
  • ¥15 51单片机与数码管实现电子琴
  • ¥15 h3.6m 人类行为预测论文复现
  • ¥50 wordpress项目注册报失败刷新后其实是成功状态,请求排查原因