Try running install.packages("jsonlite") and see if the error goes away. You might need to do the same for other packages you have missing. Specifically, you might see something like:
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘xxx’
Then you'll need to run the command above with xxx instead of jsonlite.