I recommend scoop package manager
scoop install nvm
# then reload your terminal
nvm install 18
nvm use 18.16.0 # version may differ
node -v
# be sure that it starts from 18
corepack enable
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
# or
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
# then reload your terminal
nvm install 18
node -v
# be sure that it starts from 16
corepack enable
Be sure that you in frontend dir
pnpm i
¯\_( ͡° ͜ʖ ͡°)_/¯
pnpm create vite frontend --template react-swc-tc