moon icon indicating copy to clipboard operation
moon copied to clipboard

[bug] Process failure for moon.exe

Open NikolaRHristov opened this issue 2 years ago • 1 comments

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 avatar Aug 12 '22 16:08 NikolaRHristov

@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.

milesj avatar Aug 12 '22 17:08 milesj

Can you try again with v0.11? I'm not entirely sure what the root issue is here.

milesj avatar Aug 14 '22 06:08 milesj

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 avatar Aug 14 '22 14:08 NikolaRHristov

@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

milesj avatar Aug 14 '22 19:08 milesj

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:\

NikolaRHristov avatar Aug 14 '22 20:08 NikolaRHristov

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

NikolaRHristov avatar Aug 15 '22 00:08 NikolaRHristov

It happens when an import doesn't exist in a .ts file.

NikolaRHristov avatar Aug 15 '22 00:08 NikolaRHristov