Q: I am getting a direct dependency error when trying to run npm install, what could be causing this?
Example:
npm ERR! code EOVERRIDE
npm ERR! Override for vue-template-compiler@2.7.16 conflicts with direct dependency
A: The most common answer to this is that somewhere in your package.json you are referencing two different versions of vue, vue-template-compiler, or vue-server-renderer. All three of the aforementioned packages should be referencing the same version number.
Example:
"dependencies": {
"vue": "npm:@neverendingsupport/vue2@2.6.16"
},
"overrides": {
"vue": { ".": "npm:@neverendingsupport/vue2@2.6.16" },
"vue-template-compiler": { ".": "npm:@neverendingsupport/vue2@2.6.16-vue-template-compiler" },
"vue-server-renderer": { ".": "npm:@neverendingsupport/vue2@2.6.16-vue-server-renderer" }
},
"devDependencies": {
...
"vue-template-compiler": "npm:@neverendingsupport/vue2@2.6.16-vue-template-compiler",
"vue-server-renderer": "npm:@neverendingsupport/vue2@2.6.16-vue-server-renderer"
},