Jump to content

I'm using linux mint 21.3, and i just made a new react project, and i need to make button that takes me to a different page. The problem is, that every time i try to install react-router-dom, it installs an older version, which doesn't have what i need. It also always gives some kind of error when trying to install any other package, my npm version is 10.5.2 does anyone know why?

image.png.d2dd20feb598a1519e7d65d7da760c9d.png

Link to comment
Share on other sites

Link to post
Share on other sites

18 minutes ago, MiszS said:

oes anyone know why?

try running the suggested audit fix command.

 

 

18 minutes ago, MiszS said:

t installs an older version, which doesn't have what i need.

Which version do you need? Which version did react-router-dom@latest install?

npm show react-router-dom version

 

Link to comment
Share on other sites

Link to post
Share on other sites

24 minutes ago, C2dan88 said:

try running the suggested audit fix command.

 

 

Which version do you need? Which version did react-router-dom@latest install?

npm show react-router-dom version

 

the fix command doesn't do shit, and the router version is 6.22.3, but i have no idea which version i need, just the one that has "useHistory". I also want to just be able to install packages normally, like the react-icons, which i tried and it also didn't work before

 

image.thumb.png.c52e2f1cd3f878b59c370a5c21030d69.png

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, MiszS said:

version is 6.22.3

Well, that's the latest version, so I'd say it's working correctly

5950X/3080Ti primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to comment
Share on other sites

Link to post
Share on other sites

Link to comment
Share on other sites

Link to post
Share on other sites

Link to comment
Share on other sites

Link to post
Share on other sites

If you absolutely must, you can force the install of v5.3.4 which has UseHistory
 

5950X/3080Ti primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, MiszS said:

oh, that makes sense, but how do i even load a different page then?

Did you read either of the tutorial articles I linked?

5950X/3080Ti primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, OddOod said:

Did you read either of the tutorial articles I linked?

nah, i'm blind

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×