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

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条回答 默认 最新

相关推荐 更多相似问题