gts icon indicating copy to clipboard operation
gts copied to clipboard

(question) How am I to go about using 4.0.0?

Open Noxillio opened this issue 2 years ago • 4 comments

I'm trying to use 4.0.0 but since it isn't on npm yet, npx gts init uses 3.1.1.

So instead I try to use the GitHub repo syntax to install/use it (npx google/gts init), but nothing happens in the end. It asks me if I want to install gts 4.0.0, which I do, so I say yes (I've also tried adding the -y flag), and then I don't get any new files created in my project's directory, it doesn't prompt me to make a package.json file (directory is empty), nothing.

Could someone shed some light onto this for me so I can use 4.0.0 with my project?

Noxillio avatar Sep 21 '22 21:09 Noxillio

This probably came too late, and you've resolved it, but you can use the command npm i [email protected] to get the right version.

KOOKIIEStudios avatar Dec 09 '22 19:12 KOOKIIEStudios

I thought I'd found a workaround but I don't remember what it was anymore.

Also, when installing gts locally, you have to delete package.json in order for the init command to fully populate it. That's what I'm going to do for the time being.

Noxillio avatar Jan 14 '23 06:01 Noxillio

npx -y gts@next init -y

abcfy2 avatar Mar 30 '23 03:03 abcfy2

Thanks @abcfy2, it worked perfectly for me!

gamer-mitsuha avatar Apr 06 '23 12:04 gamer-mitsuha