Vite: Using create vite-app uninstalled yarn

Created on 29 Jun 2020  路  6Comments  路  Source: vitejs/vite

Describe the bug

Using create vite-app uninstalled yarn

Reproduction

I followed exactly the instructions on the readme, choosing the yarn version because I have yarn on the system and use yarn every day at work:

$ yarn create vite-app <project-name>
$ cd <project-name>
$ yarn
> zsh: command not found: yarn

I have no reproduction since I didn't actually use Vite.

This makes literally no sense, but i use yarn everyday and suddenly it's gone and i used it to run create vite-app, so i can only assume that it was something in there that removed it.

System Info

  • required vite version: ^1.0.0-beta.3
  • required Operating System: MacOS 10.15.5 (19F101)
  • required Node version: 10.16.3
  • Optional:

    • npm/yarn version: i don't know anymore. I think it was 1.*

    • Installed vue version: ^3.0.0-beta.15

    • Installed @vue/compiler-sfc version

pending triage

All 6 comments

This makes literally no sense

As you said. I closed this issues, we will tract it if you reproduction again.

I agree this makes no sense but this same thing happened to me a couple of weeks ago. I thought it was some kinda fluke with my setup. I re-installed yarn and I don't believe it happened again.

My guess is maybe it was a yarn bug w/ a specific version.

Yeah.Please record yarn version and open an issues on yarn repo if it happend again.Maybe yarn maintainers can fix it.

Unfortunately I have no idea what version of yarn I had (other than 1. Something) as it is now gone. Intrigued to hear it happened to someone else.

Could be an issue in yarn create specifically, since it implicitly runs a global install. Pretty sure it's not induced by Vite specifically...

wow this happened to me again. lol wtf bbq (going to yarn to report.. )!

Was this page helpful?
0 / 5 - 0 ratings