Lesson 0 Feedback - Training Setup Not Documented
-
I'm trying to follow:
https://github.com/DataVisHub/gojs-course/blob/main/lessons/lesson-0-project-setup-and-intro.md
When trying to execute:npm start run
I get the error shown below:
C:\rw_apps\dev-junk\gj1>npm start run > family-tree-builder@1.0.0 start > vite "run" 'vite' is not recognized as an internal or external command, operable program or batch file. C:\rw_apps\dev-junk\gj1>
I think I resolved the problem by running
npm install vite
Also the version of npm / node / vite /etc. are not documented.
I tried to use:C:\rw_apps\dev-junk\gj1>npm -version 8.8.0 C:\rw_apps\dev-junk\gj1>node -v v18.18.2
but when the VITE app is running, I get HTTP 404 errors
VITE v6.3.5 ready in 403 ms ➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h + enter to show help
Firefox Developer Tools response documented is:
http://localhost:5173/ sent back an error. Error code: 404 Not Found { "responseHeaders": { "headers": [ { "name": "Connection", "value": "keep-alive" }, { "name": "Content-Length", "value": "0" }, { "name": "Date", "value": "Tue, 27 May 2025 15:57:03 GMT" }, { "name": "Keep-Alive", "value": "timeout=5" }, { "name": "Vary", "value": "Origin" } ] } }
-
Thank you for the feedback!
We’ve updated Lesson 0 to specify the required Node.js/npm versions and made it clear that all commands must be run from the project folder containing package.json.
When you run commands from the repo’s root directory (the folder containing package.json), Vite is installed automatically as a dev dependency - so you don’t need to install it manually.
If you still see a 404 at http://localhost:5173/, it usually means the dev‑server was started from the wrong directory (one without index.html and package.json). Please make sure you’re in the repo folder and let us know if you hit any other snags!