Advertisement
ramuanon

NODE.JS v19.1.0 WIN7 INSTALL for TAVERNAI/PYGMALION

Jan 30th, 2023 (edited)
8,421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. NODE.JS v19.1.0 WIN7 INSTALL for TAVERNAI/PYGMALION
  2.  
  3. EDIT: this guide wasn't as stupid-proof as i thought, but that's on me. i added a few steps that i forgot to write down before, so apologies to anons that were trying to follow this guide and failed. all updated steps will have an !!! preceding them, just to make them easier to find. if this guide has previously failed for you, completely wipe the "nodejs" folder from your system and re-extract the .zip file to a desired location, then try again with the additional steps below.
  4.  
  5. this is a guide for anons experiencing issues with installing Node.js v19.1.0 on their Windows 7 OS required for TavernAI to run, and the workaround for it.
  6.  
  7. >you will need:
  8. node-v19.1.0-win-x64/x32 ---> https://nodejs.org/download/release/v19.1.0/
  9. TavernAI ---> https://github.com/TavernAI/TavernAI/archive/refs/heads/main.zip
  10. google colab links in the OP --->
  11. GPU (slower, less limited) https://colab.research.google.com/github/koboldai/KoboldAI-Client/blob/main/colab/GPU.ipynb
  12. TPU (faster, extremely limited) https://colab.research.google.com/github/KoboldAI/KoboldAI-Client/blob/main/colab/TPU.ipynb
  13.  
  14. >first of all, (if this is NOT a clean install. if this is a CLEAN install, look for asterisk alternative) verify that you've downloaded the "node-v19.1.0-win-x64.zip" (or x32, if you're autistic) from the official website and have not accidentally grabbed the .msi installer. this will not work, it must be the .zip file.
  15.  
  16. >naturally, overwrite the existing "nodejs" folder with the new v19.1.0 .zip.
  17.  
  18. !!! >just to make sure, open up a cmd window (as ADMINISTRATOR) and type in (without quotations): "node --version"
  19. !!! >as long as 19.1.0 shows up in the next line, you're all good. this is to verify that things are on track.
  20.  
  21. >now, open up and skim the "node_modules\npm" file directory.
  22. this is important, because although you have Node.js v19.1.0 on your system, the "npm" folder remains outdated, and is barring you from being able to execute the Start.bat file from TavernAI.
  23.  
  24. !!! what i failed to mention initially is that you NEED TO CLARIFY the PATH for nodejs. this little blunder on my part probably resulted in the "npm" and "npm-cache" folders not appearing in your "%appdata%\Roaming" directory. this is easily fixable (hopefully).
  25. !!! >first and foremost, go to "System properties" and then click on "Advanced system settings."
  26. !!! >open up "Environmental variables..." and click on the "PATH" user variable, double-click to edit.
  27. !!! >from there, type in the location of your "nodejs" folder at the end, do not delete what is already there. additionally, you must parse whatever is at the end of your PATH user variable with a semi-colon, this acts as a "break" between PATH designations.
  28. !!! >it should look something like this (without less than or greater signs):
  29.  
  30. ;C:\Users\<yourcomputernamehere>\AppData\Roaming\npm;C:\Program Files\nodejs
  31.  
  32. !!! >now, you are free to continue the rest of the guide without issue.
  33.  
  34. >delete the "npm" folder.
  35. >navigate to windows start menu, type in (without quotations): "%appdata%"
  36. >click "Roaming"
  37. >delete the "npm" folder and "npm-cache" file.
  38. DELETING BOTH OF THESE IS REQUIRED.
  39.  
  40. >thirdly, go ahead and open up a command prompt, run in administrator as a precaution.
  41. >from there, type in (without quotations): "npm install npm@latest -g"
  42. >this command will add to, and remove, replace, or modify, any existing packages to become up-to-date.
  43.  
  44. >*if this is a fresh install, extract the .zip file to an easily accessible directory (i put mine in C:, for example) and delete "nodejs\node_modules\npm" and "%appdata%\Roaming\npm + npm-cache" AFTER clarifying the PATH user variable in "Environmental variables...", THEN use command prompt to type in (without quotes): "npm install npm@latest -g", just to ensure that you have the latest install through-and-through.
  45.  
  46. >extract TavernAI to a desired place, and open "Start.bat."
  47. >if you've followed the instructions, this should result in the cmd window outputting an IP address for you to use, and the UI will open on its own in a browser.
  48. >if you've followed the instructions, and the cmd window either opens for a split second, or doesn't open at all, you've done something wrong. Go back over the steps before asking for help.
  49.  
  50. >if your autistic tendencies demand it, like mine does, it wouldn't be a bad idea to create a system restore point. you should already be doing this, because it takes no effort at all.
  51.  
  52. >congrats! it is now possible for you to use the Tavern UI on Win7!
  53.  
  54. if there are any (notable) discrepancies with this guide, i'll be lurking in the /aicg/ threads, so bring it up and i will be sure to fix it and edit the paste as soon as i can. you can ask for help too, although it can't be guaranteed that i'll be around all day to see it, so you might have to rely on other anons or deal with the problem yourself.
  55. @ramuanon
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement