From d600b40b0d1c33d91e9e6d780468343a238929af Mon Sep 17 00:00:00 2001 From: Frode Fuglestad Date: Fri, 13 May 2022 19:37:38 +0200 Subject: [PATCH] chore: use volta to manage node and npm versions --- README.md | 6 +++--- package.json | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7eba4cd7..3c34e40a 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ You have an idea of a tool? Submit a [feature request](https://github.com/Corent [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin). -### Node version +### Node & NPM versions -Ensure you have the correct node/npm version +Volta manages node and npm versions automatically in this project. ```sh -nvm use +curl https://get.volta.sh | bash ``` ### Project Setup diff --git a/package.json b/package.json index 5aa768bc..4fdb4697 100644 --- a/package.json +++ b/package.json @@ -65,5 +65,9 @@ "vite-svg-loader": "^3.2.0", "vitest": "^0.5.0", "vue-tsc": "^0.31.4" + }, + "volta": { + "node": "16.15.0", + "npm": "8.5.5" } }