Vue ESLint Parser Error: Missing ESLint Peer Dependency
The error message 'vue-eslint-parser@6.0.5 requires a peer of eslint@^5.0.0 || ^6.0.0 but none is installed' indicates that the 'vue-eslint-parser' package needs a specific version of 'eslint' as a peer dependency. It requires 'eslint' version '^5.0.0' or '^6.0.0', but you haven't installed any version of 'eslint'.
To resolve this, install 'eslint' yourself using the following command:
npm install eslint --save-dev
or
yarn add eslint --dev
This will install 'eslint' as a development dependency in your project, satisfying the peer dependency requirement for 'vue-eslint-parser'.
原文地址: https://www.cveoy.top/t/topic/qAmC 著作权归作者所有。请勿转载和采集!