How do i open a playtest window in VS Code for the Demo game so i can edit and constantly check?
I have Windows, seemingly downloaded pnpm in powershell after some struggle and opened a re-named demo in VS Code with the Narrat extension installed. I believe i can edit the script and general game, however i have no way of checking if it works as the localhost did not open in my browser (Microsoft edge) and i prefer to work and save on my computer.
Is there another install from VS Code to open a playtest window? (or i step i missed in the instructions?
I am completely new to any type of coding/advanced computer stuff. (if you couldn’t already tell from my wording)
in the ribbon up high: click on “Terminal” (right of “Run”) then “New terminal”
Then in the terminal that opened in the bottom: type npm start and enter, then o and enter
Typed npm start in, and received this. I typed in 0 after just in case, but nothing happened. (i have no idea what it means but it doesn’t look correct)
Downloaded node.js and made the game file using powershell. Seemingly downloaded pnpm, vs code and the narrat extension. When using powershell to get the local host link, it didn’t work and this idea was my work around. Besides i would prefer a way to test the game offline if possible.
Also this probably means npm modules arent installed so run pnpm install and see what happens with it.
i’ve also seen some newer versions of pnpm have an annoying new security thing that breaks a bunch of things so if it has errors it might be needed to install an older one. Narrat is currently made using 10.13.1
Pretty sure you can do npm install -g pnpm@10.13.1 to install a specific version if needed
I believe so. Only thing I don’t have as it said it was optional was nvm for windows. I followed the tutorial video to create the folder, and then the steps to get pnpm.
Here’s a screenshot of what happens when i run npm install in the terminal:
(Also thank you for your help thus far, I really appreciate it)
That may be part of the problem. I deleted 2 files from the original folder as I was instructed to do so before installing pnpm. Perhaps using npm for now may be easier to get it working, before trying to upgrade it to pnpm. Although i do believe the problem of local host not running was happening before i did this.
(i am still a little unsure as to what npm/pnpm do as i am completely new to this, so i hope this makes sense haha)
The npm install output looks normal/correct, if running npm start after it tells you vite isnt there that’s very weird.
npm is just a tool that installs code libraries for javascript projects. So all it really does is download narrat and other dependencies and puts them in the project. But it is also notoriously finicky.
Which files was it that you deleted though? Also you can try to delete the node_modules folder (which is where said libraries get downloaded) and redo the npm install, in case something went wrong.
Or even redo the npm create narrat in a new folder, to try fresh in case something is wrong with the one you’ve got
I genuinely have no idea what happened but running npm start again somehow worked. Thanks so much for your help, I just have to hope it doesn’t magically stop working again haha