Error Creating Imposters in Windows (Works In a Mac)

19 views
Skip to first unread message

Chris Nombres

unread,
Feb 18, 2024, 10:28:35 PM2/18/24
to mountebank-discuss
Hi,

The mockserver set up is not working in a Windows machine. Any inputs why I am getting this and how to fix? Thanks.

MockServer: error: [mb:2525] error creating imposter: {"code":"cannot start server","message":"Invalid configuration for protocol \"ws\": cannot run \"ts-node -T ../mock-server/src/ws/ws.ts\"","source":"ts-node -T ../mock-server/src/ws/ws.ts","details":{"errno":-4058,"code":"ENOENT","syscall":"spawn ts-node","path":"ts-node","spawnargs":["-T","../mock-server/src/ws/ws.ts","{\"port\":8093,\"callbackURLTemplate\":\"http://localhost:2525/imposters/:port/_requests\",\"loglevel\":\"info\",\"allowInjection\":false,\"numberOfRequests\":0,\"requests\":{},\"allowCORS\":true}"]},"name":"Error","stack":"Error\n    at Object.from... 
Reply all
Reply to author
Forward
0 new messages