From 14d4c95cf93dbc39f010a96e4bbcefcf2c00828a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatriz=20Sope=C3=B1a=20Merino?= Date: Fri, 24 Nov 2023 13:57:08 +0100 Subject: [PATCH] fix(config): gets errors about `@vue/cli` and `prettier` Error: - If these packages are not installed globally you get an error in the terminal. `sh: 1: vue-cli-service: not found` `sh: 1: prettier: not found` `Volta error: Could not locate executable 'prettier' in your project.` Solution: - Check the list of installed global dependencies. `npm list -g --depth=0` - Install the `@vue/cli` and `prettier` packages globally in their stable version. `npm install -g @vue/cli@5 prettier@2` - Add packages to the `globalDependencies` object to alert other developers that they are required. References: - https://cli.vuejs.org/#getting-started - https://stackoverflow.com/a/59867005 --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 5387f958..96da3abf 100644 --- a/package.json +++ b/package.json @@ -75,11 +75,13 @@ "vue-template-compiler": "^2.7.15" }, "globalDependencies": { + "@vue/cli": "^5.0.8", "@commitlint/cli": "^17.0.3", "@commitlint/config-conventional": "^17.0.3", "commitizen": "^4.3.0", "conventional-changelog-cli": "^2.2.2", "cz-conventional-changelog": "^3.3.0", + "prettier": "^2.8.8", "standard-version": "^9.5.0" }, "resolutions": {},