Npm not found / nodejs

Hey guys, so im trying out how to build and bumping into an issue

After installing everything, i go to play mode and i get this warning: "Server is not responding, see commandline/terminal for errors or try running β€œnpm start & timeout 10”

The web does open up, but the cmd is not the server but an error that npm doesnt exist. help pls?

Original Post on Discord

by user 263967078346653697

ok i updated to the newest versionn and getting an error now

by user 263967078346653697

saying npm is not installed

by user 263967078346653697

maybe a simple unity refresh will do itt

by user 263967078346653697

by user 263967078346653697

ehh nope

by user 263967078346653697

woohoo got it, had to restart pc

by user 263967078346653697

Great you figured it out :slightly_smiling_face:

yeppp btw marcel

by user 263967078346653697

while we’re at it

by user 263967078346653697

im trying to have orbit controls work like fps rotation

by user 263967078346653697

Changed the channel name: npm not found / nodejs

i found out that if i dont set the target to anything, it raycasts the first obj in view

by user 263967078346653697

what if i just want to use it for looking around without zoom and stuff

by user 263967078346653697

do i need my own script?

by user 263967078346653697

I would say use a dedicated package for it. This looks nice for example: https://www.npmjs.com/package/spatial-controls it has a first person mode

You can write a small typescript wrapper component that exposes it to unity (similar to OrbitControls)

would this work on mobile too?

by user 263967078346653697

umm i dont get it

by user 263967078346653697

i see that orbit controls is kinnda like a scriptable object, exposing parameters from a script, but i dont know which script it is

by user 263967078346653697