T
TanStack•4y ago
rival-black

npm install tanstackrouternot working

@tanstack/router installation is not working it says: "Not found" is it released or do we need to wait?
npm install @tanstack/router --save
npm install @tanstack/router --save
9 Replies
stormy-gold
stormy-gold•4y ago
It's still in development If you want to use its predecessor, install react-location
inland-turquoise
inland-turquoise•4y ago
I was also very confused by this 😅
What's the difference between router and location?
metropolitan-bronze
metropolitan-bronze•4y ago
You were not alone, it took me hours to find out what's going on. react-router is the upcoming new version (v4) and react location is v3.
absent-sapphire
absent-sapphire•3y ago
Following the guide at https://tanstack.com/router/v1/docs/installation I try npm install @tanstack/react-router@beta --save , this gives me:
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:^
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:^
Installation | TanStack Router Docs
You can install TanStack Router with NPM, Yarn, or a good ol' `` via unpkg.com.
absent-sapphire
absent-sapphire•3y ago
It also does not work with yarn
genetic-orange
genetic-orange•3y ago
I am getting the same with the latest version - hopefully it'll be fixed soon. In the meantime beta.38 installs ok.
absent-sapphire
absent-sapphire•3y ago
it works now! Thanks whoever!
stormy-gold
stormy-gold•3y ago
Any errors?
absent-sapphire
absent-sapphire•3y ago
Not when installing no. Did not get any further yet 🙂 Small documentation thing: the docs use @tanstack/react-router when installing, and '@tanstack/router' in Route Configs.

Did you find this page helpful?