complete-vuejs icon indicating copy to clipboard operation
complete-vuejs copied to clipboard

Add package.json scripts

Open jakeecolution opened this issue 3 years ago • 2 comments

I don't know how you did it before but this is the only way I could get vite to build the development server. I did a basic comparison between this repo and the vitejs.dev common app install process.

jakeecolution avatar Jul 09 '21 01:07 jakeecolution

I had the same error and fixed it by adding the scripts to package.json. You can replicate the problem running npm vite src, and will get the unknown command error.

StephanoAH avatar Sep 08 '21 13:09 StephanoAH

Hi @StephanoAH, since vite is an executable you probably want npx vite src. yarn does this automatically.

lmiller1990 avatar Sep 21 '21 01:09 lmiller1990