fullstack-hy2020 / fullstack-hy2020.github.io

Home Page:https://fullstack-hy2020.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Part 1 a Introduction to React - command "npm create vite@latest part1 -- --template react" inputs

ivaeisaenen opened this issue · comments

Command npm create vite@latest part1 -- --template react (npm version 6.14.15) will result in question Select a Framework:
-Vanilla
-Vue
-React
-Preact
-Lit
-Svelte
-Solid
-Qwik
-Others

And when selected React it will ask Select a variant:
-TypeScript
-TypeScrpt + SWC
-JavaScript
-JavaScript + SWC

Please add instruction note that there might be some selection and correct option

hmm, in which operating system you are running the command? works in mac and linux

Operating system is Windows 10 and everything works fine after selecting React and JavaScript. Maybe just add note that there might be a selection menu for some combination of operation systems (Likely windows) and some versions of npm?

npm create vite@latest part1 -- --template react

Select a Framework

Select a Variant

With npm 6 or earlier the command differs a bit, see https://vitejs.dev/guide/#scaffolding-your-first-vite-project

Hey, it's been updated and fixed on the site, you can check now.
for finding out your npm version you can try running npm --version in your terminal.