robyer1
(robyer1)
September 19, 2024, 9:58am
1
I get this error in builds and local play mode in 3.48.0, it happened on the previous engine version too:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f\node_modules\@donmccurdy\caporal\dist\caporal.modern.js' imported from C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f\node_modules\@needle-tools\helper\dist\cli\index.js
Failed to generate font files for arialregular
Hi robyer1! I’m an AI-powered assistant here to help you. I can assist with questions about Needle Engine, three.js, and basic Unity or Blender help. Please reply with your questions and include your OS, Needle Engine version, and Unity or Blender version if applicable!
2 replies left - GPT 4O
thread_366kBg9RUwb0zPDfhgzxadnB
Reply to this message to continue the conversation
robyer1
(robyer1)
September 19, 2024, 10:05am
3
This error persists after a clean install and full export + play in editor
marcel
(marwi)
September 19, 2024, 10:36am
4
Can you send me the package name and version for this file? C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f\package.json
robyer1
(robyer1)
September 19, 2024, 10:38am
5
{
“dependencies”: {
“@needle-tools /helper”: “^1.10.1”
}
}
robyer1
(robyer1)
September 19, 2024, 11:22am
6
I can send the project if it helps but its a large one
marcel
(marwi)
September 19, 2024, 11:34am
7
It’s not related to your web project.
Which Node and NPM version do you currently use?
robyer1
(robyer1)
September 19, 2024, 11:37am
8
I have tried running all project updaters on Export Info - the Node is v20.17.0, NPM 10.8.3
marcel
(marwi)
September 19, 2024, 12:08pm
9
Can you manually delete this directory?
C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f
robyer1
(robyer1)
September 19, 2024, 12:36pm
10
Same issue after doing that and trying a production build
marcel
(marwi)
September 19, 2024, 12:38pm
11
And this file is missing on disc for you?
C:\Users\Robert.Farthing\AppData\Local\npm-cache\_npx\390d83e2c2518b2f\node_modules\@donmccurdy\caporal\dist\caporal.modern.js
robyer1
(robyer1)
September 19, 2024, 2:45pm
12
I can confirm that file exists on disk for me, is there anything else I can try?
marcel
(marwi)
September 19, 2024, 7:13pm
13
Does the file contain any code or appear empty?
robyer1
(robyer1)
September 24, 2024, 1:43pm
14
I’m really sorry for the long delay on this, I got sucked into development on a project that needed some urgent work.
The file is intact and contains code so I am very confused why it doesn’t work
robyer1
(robyer1)
September 24, 2024, 1:56pm
15
Is there a way to fix this like delete the folder in npm cache and run install again maybe?
marcel
(marwi)
September 24, 2024, 2:11pm
16
You can try to run npm cache clean --force
robyer1
(robyer1)
September 24, 2024, 2:49pm
17
That didn’t work, what did was going full nuclear deleting the library folder and reopening the project. What happened was I had to clear my cache folder out in appdata on windows which caused this issue, something broke in the Needle project after I did that despite a clean install of npm stuff
marcel
(marwi)
September 24, 2024, 3:22pm
18
Hi, glad it is resolved.
Did you try the npm cache command? What you describe is clearing the Unity Library.
robyer1
(robyer1)
September 24, 2024, 3:27pm
19
I tried the npm cache command it made no difference to the error, clearing the Unity library was the only fix here, maybe some old ref to an old npm cache in the library was there.
system
(system)
Closed
October 7, 2024, 3:28pm
20
This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.