Server doesn't start

When starting the server, I get prompted with this error and I don’t know what to do, I haven’t changed anything. I just imported the installer followed the steps with this tutorial:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> Portfolio@1.0.0 start
> vite --host

'O' is not recognized as an internal or external command,
operable program or batch file.
  throw err;

Error: Cannot find module 'C:\Users\mattt\AppData\Roaming\Unity\Games\vite\bin\vite.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  requireStack: []

What can I do to fix this?

Original Post on Discord

by user 590771341972733963

Hi :wave:
Where exactly do you get that error?

when starting the server so ‘Export’ gameobject > ‘start server’ or when just hitting the playbutton

by user 590771341972733963

  1. Which nodejs version are you using? (you can find that out when running node --version in the cmdline, npm --version would also be good to know)

  2. Where is your Unity project on disc?

nodeJS is v16.16.0

by user 590771341972733963

and project location is : C:\Users\[user]\AppData\Roaming\Unity\Games\O&O portfolio

by user 590771341972733963

npm vertsion: 8.11.0

by user 590771341972733963

Can you try a path without 0&0 just to see if it has problems with that?


by user 590771341972733963

oh well, it thatt fixed it… thanks

by user 590771341972733963

Ok good to know!

how an ‘&’ can mess up an program

by user 590771341972733963

“Special Characters in Paths, 2022 Edition”
Glad you were able to resolve it this way!