Node, npm, VS Code setup for Vue and Nuxt 3
If this is the first time you run a npm / node app on your setup, this guide will help you to set both of them up for your sidebase project:
- Install the nodeversion managernvmby running:curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
- Install the required nodeandnpmversion:- Specific version:nvm install 18
- Create a .nvmrc-file that contains a node version like16.14.2, then use it like this:# uses existing `.nvmrc`-file to install required versionnvm install
 
- Specific version:
- Use the required nodeandnpmversion:- Specific version (in the current terminal session!):nvm use 18
- Create a .nvmrc-file that contains a node version like16.14.2, then use it like this (in the current terminal session!):# uses existing `.nvmrc`-file to use required versionnvm use
- Permanently change used nodeandnpmversion:# Make node 16.14.2 your default node version:nvm alias default 16.14.2
 
- Specific version (in the current terminal session!):
- Install a code editor (recommended: VS Code), get it here
- Uninstall or disable the old Vue VS Code extension Vetur, else conflicts may arise betweenvolarandVetur
- Install the volarextension to supportvue,nuxtandtypescriptdevelopment help
- Enable "take over mode" for volar for this project.- documented here: https://github.com/johnsoncodehk/volar/discussions/471
- for VS Code:- Run (CMD/CTRL + SHIFT + P): Extensions: Show Built-in Extensions
- Find "TypeScript and JavaScript Language Features"
- Right click and select "disable for workspace"
- Reload the editor
- A message "Take over mode enabled" (or similar) should appear
 
 
- Done! You can now run `npm install and it should work as expected
Stuck? Ask for help: https://discord.gg/VzABbVsqAc
If you have type-problems (e.g., unexpected squiggly lines in your code-editor) after running npm i for the first time:
- Ensure you have veturdisabled or uninstalled (see above),
- Ensure you have the builtin typescriptextention of VS Code disabled (see above),
- Reload the vuevolar server (VS Code command: "Volar: Restart Vue Server"),
- Close and re-open the file you have problems with,
- Ensure that the nuxt-postinstall step ran to generate nuxt-types by running: npm run postinstallin your sidebase project
If none of this works, file an issue (preferrably with a reproduction) here or join our Discord to ask: https://discord.gg/VzABbVsqAc