Npm Install not working on Linux resulting in missing files

It worked like a few weeks ago

Original Post on Discord

by user 261850755751739393

Can you provide a little bit more information here?

  • which sample are you running?
  • how did you install the sample? Which project are you using?
  • which Unity editor version?
  • which exporter version?
  • which OS?
  • What did you exactly do that produced those errors? Did you just update?

Collaborative Sandbox
I just installed it with the needle popup
Unity 2021.3.15f
exporter 2.55.2 tried with 2.54 same issue
Linux-Manjaro
I just installed needles on a new project, tried my working project and that doesn’t work too.

by user 261850755751739393

Do you see those errors when running the local server or when building?

Have you tried restarting the vite server?
Maybe try stopping it, running install, starting again.

in both cases

by user 261850755751739393

Do the files it complains about exist?

this are the only files in that directory

by user 261850755751739393

What’s the path of that directory? That can definitely not work.

/Project/Needle/CollaborativeSandbox/node_modules/@needle-tools/engine

by user 261850755751739393

Can you check whats inside “Packages/Needle Engine/package~” ? You can open it via context clicking the package folder in Unity and then go into package~
image.png

this is the folder that opens up

by user 261850755751739393

sorry wrong directory

by user 261850755751739393

Yep but you need to go one folder deeper into package~ - that’s where the runtime engine actually is :slightly_smiling_face:

It’s a hidden folder because otherwise Unity would try to import all the node_modules files etc which doesnt make sense

by user 261850755751739393

Ok so that looks right - this is what you should have seen here too: Discord

Can you try deleting this folder: /Project/Needle/CollaborativeSandbox/node_modules/@needle-tools/engine and then running install again from Unity?

now i got this

by user 261850755751739393

when i clicked install

by user 261850755751739393

this is the log
message.txt

by user 261850755751739393