moon
moon copied to clipboard
[bug] Process failure for moon.exe
When running moon run :build
I get:
Process failure for ......\node_modules@moonrepo\cli\moon.exe: The system cannot find the path specified. (os error 3)
Everything is installed and setup through moon sync
and moon setup
.
@NikolaRHristov Can you verify that the moon.exe
file exists at that location or not? It should be created as part of a postinstall
hook when installing node modules.
Can you try again with v0.11? I'm not entirely sure what the root issue is here.
Now I get a:
D:\Developer\node_modules\.pnpm\@[email protected]\node_modules\@moonrepo\cli\moon.exe:1
MZ�
SyntaxError: Invalid or unexpected token
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1049:15)
at Module._compile (node:internal/modules/cjs/loader:1084:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Node.js v18.7.0
ERROR Process ~\.moon\tools\node\18.7.0\node.exe failed with a 1 exit code.
This is the repo I'm testing with https://github.com/Playform/blank-web-starter, but it also appears in others
This is the @moonrepo folder I got in node_modules: @moonrepo.zip
@NikolaRHristov The node modules looks correct. What package manager is being used?
It kind of looks like this failure: https://github.com/yarnpkg/berry/issues/882
This is [email protected] and [email protected], btw these are two different drives. The ~/.moon folder is on drive C:\ and the .moon directory inside D:\Developer is on drive D:\
It's an error in my code. Nothing wrong with moon. Closing this down. TypeScript didn't compile and it didn't throw an error.
ELF
^
SyntaxError: Invalid or unexpected token
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1049:15)
at Module._compile (node:internal/modules/cjs/loader:1084:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Node.js v18.7.0
It happens when an import doesn't exist in a .ts
file.