html5 example help

hey all. quite new to this stuff, and was trying to follow the html5 quickstart guide but it errors out when i run npm run dev. any help is genuinely appreciated. thanks!
11 Replies
jxn
jxnOP14mo ago
error log:
ptato
ptato14mo ago
[rivet:dev] 'rivet' is not recognized as an internal or external command, [rivet:dev] operable program or batch file.
[client:dev] 'vite' is not recognized as an internal or external command, [client:dev] operable program or batch file.
it seems you dont have the rivet CLI nor vite installed, did you make sure to install rivet via
curl -L https://releases.rivet.gg/toolchain/v2.0.0-rc.5/windows_x86_64/rivet.exe.zip -o rivet.exe.zip
unzip rivet.exe.zip
curl -L https://releases.rivet.gg/toolchain/v2.0.0-rc.5/windows_x86_64/rivet.exe.zip -o rivet.exe.zip
unzip rivet.exe.zip
and run npm install?
jxn
jxnOP14mo ago
i did run those commands to install the rivet cli and ran npm install. it says to Add the directory containing rivet.exe to your PATH environment variable. in the quickstart which i missed the first time i tried this, and im thinking thats the issue. how would i go about doing this? thanks for your time haha
ptato
ptato14mo ago
on windows you can add to the PATH with
setx PATH "%PATH%;C:\path\to\directory"
setx PATH "%PATH%;C:\path\to\directory"
from cmd, or
$env:Path += ";C:\path\to\directory"
[Environment]::SetEnvironmentVariable("Path", $env:Path, "User")
$env:Path += ";C:\path\to\directory"
[Environment]::SetEnvironmentVariable("Path", $env:Path, "User")
from powershell. just replace the path with wherever rivet.exe is located if you prefer to use a GUI instead heres a tutorial https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/
Add to the PATH on Windows 10 and Windows 11 | Architect Ryan
Thoughts from Ryan Hoffman, an experienced team leader, software architect and developer.
ptato
ptato14mo ago
that might not solve your error with vite, thats supposed to be installed after npm install
jxn
jxnOP14mo ago
added the directory to the PATH env, however npm run dev is still returning the same error, saying that it doesnt recognize rivet or vite as an internal or external command tried to redo the process in a completely new folder and produced the same results.
ptato
ptato14mo ago
if you try to run C:\path\to\rivet.exe --version do you get the same error?
jxn
jxnOP14mo ago
i get:
rivet-cli

git sha: 9a990ae
git branch: 10-02-fix_re-enable_cross_platform_builds
build semver: 2.0.0-rc.4
build timestamp: 2024-10-02T11:01:54.354034293Z
build target: x86_64-pc-windows-gnu
build debug: false
rustc version: 1.80.1
rivet-cli

git sha: 9a990ae
git branch: 10-02-fix_re-enable_cross_platform_builds
build semver: 2.0.0-rc.4
build timestamp: 2024-10-02T11:01:54.354034293Z
build target: x86_64-pc-windows-gnu
build debug: false
rustc version: 1.80.1
when i try to run the same command in C:\path\to\rivet.exe\toolchain\examples\html5-node\ i get the rivet is not recognized error
ptato
ptato14mo ago
does your PATH contain C:\path\to\rivet.exe or C:\path\to? the latter is what you'll want. besides that i would try restarting your terminal and trying again
jxn
jxnOP14mo ago
that seemed to fix it. now i am just having issues with vite and it not being recognized as a command. it seems like npm install didn't fully do its job figured it out! had to do with the version of node i was using. thanks so much for the help!
ptato
ptato14mo ago
no problem! glad we could help

Did you find this page helpful?