Problem
Users on Windows who run setup.sh via WSL and then try to run node .mex/dist/cli.js check from a native Windows terminal get a module not found error.
Steps to reproduce
- Clone mex on a Windows machine
- Run
setup.sh via WSL
- Run
node .mex/dist/cli.js check from the project root (outside WSL)
What happens
Error: Cannot find module '...'
Why
The CLI gets built inside WSL but node_modules and path resolution break when the build environment and runtime environment don't match. Mixing Windows filesystem access with WSL tooling causes symlink and path separator issues in node_modules.
Workaround
Run everything inside WSL, don't mix environments:
cd .mex
npm install
npm run build
cd ..
node .mex/dist/cli.js check
What needs to be fixed
Problem
Users on Windows who run
setup.shvia WSL and then try to runnode .mex/dist/cli.js checkfrom a native Windows terminal get a module not found error.Steps to reproduce
setup.shvia WSLnode .mex/dist/cli.js checkfrom the project root (outside WSL)What happens
Why
The CLI gets built inside WSL but
node_modulesand path resolution break when the build environment and runtime environment don't match. Mixing Windows filesystem access with WSL tooling causes symlink and path separator issues innode_modules.Workaround
Run everything inside WSL, don't mix environments:
What needs to be fixed
setup.ps1PowerShell script or making the WSL flow work end to end without manual rebuilds)