When running..
npx typewriter --debug
on a windows machine, I get the error...
× Error: Token script failed
→ Tried running: 'echo "DOESNTWORK"'
→ The system cannot find the path specified.
It works fine for my co-workers who are using a linux based system.
Is there something I am doing wrong when running this from windows?
I'm following the same instructions in the documentation here.
https://segment.com/docs/protocols/apis-and-extensions/typewriter/#token-script
Screenshot of error
Full log..
`npx typewriter --debug
npx: installed 159 in 7.127s
... Loading Tracking Plan...
↪ Downloading the latest version from Segment...
Removing generated files...
Generating client...
Trace: {
isWrappedError: true,
description: 'Token script failed',
notes: [
E:\vs\growflow-raptor-backend\frontend>npx typewriter --debug
npx: installed 159 in 5.375s
... Loading Tracking Plan...
↪ Downloading the latest version from Segment...
Removing generated files...
Generating client...
Trace: {
isWrappedError: true,
description: 'Token script failed',
notes: [
Tried running: 'echo "DOESNTWORK"'
,
'The system cannot find the path specified.\r'
],
error: Error: Command failed: cd ./; echo "DOESNTWORK"
The system cannot find the path specified.
at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {
killed: false,
code: 1,
signal: null,
cmd: 'cd ./; echo "DOESNTWORK"',
stdout: '',
stderr: 'The system cannot find the path specified.\r\n'
}
}
at ErrorBoundary. (C:\Users\tmwil\AppData\Roaming\npm-cache_npx\39988\node_modules\typewriter\dist\src\cli\commands\error.js:89:25)
at Generator.next ()
at C:\Users\tmwil\AppData\Roaming\npm-cache_npx\39988\node_modules\typewriter\dist\src\cli\commands\error.js:27:71
at new Promise ()
at __awaiter (C:\Users\tmwil\AppData\Roaming\npm-cache_npx\39988\node_modules\typewriter\dist\src\cli\commands\error.js:23:12)
at ErrorBoundary.reportError (C:\Users\tmwil\AppData\Roaming\npm-cache_npx\39988\node_modules\typewriter\dist\src\cli\commands\error.js:82:40)
at ErrorBoundary. (C:\Users\tmwil\AppData\Roaming\npm-cache_npx\39988\node_modules\typewriter\dist\src\cli\commands\error.js:101:24)
at Generator.next ()
at C:\Users\tmwil\AppData\Roaming\npm-cache_npx\39988\node_modules\typewriter\dist\src\cli\commands\error.js:27:71
at new Promise ()
× Error: Token script failed
→ Tried running: 'echo "DOESNTWORK"'
→ The system cannot find the path specified.
If you are unable to resolve this issue, open an issue on GitHub
(https://github.com/segmentio/typewriter/issues/new). Please include that you
are using version 7.4.1 of Typewriter.
× Error: Token script failed
→ Tried running: 'echo "DOESNTWORK"'
→ The system cannot find the path specified.
If you are unable to resolve this issue, open an issue on GitHub
(https://github.com/segmentio/typewriter/issues/new). Please include that you
are using version 7.4.1 of Typewriter.`