You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running npx odiff --help on Windows, I receive this error:
$ npx odiff --help
MZ�
SyntaxError: Invalid or unexpected token
at wrapSafe (node:internal/modules/cjs/loader:1469:18)
at Module._compile (node:internal/modules/cjs/loader:1491:20)
at Object..js (node:internal/modules/cjs/loader:1689:10)
at Module.load (node:internal/modules/cjs/loader:1318:32)
at Function._load (node:internal/modules/cjs/loader:1128:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49
Node.js v22.11.0
I believe the reason for this is that the little shell script that gets installed to node_modules/.bin/odiff.cmd is trying to run the odiff.exe binary file via node (node node_modules/odiff-bin/bin/odiff.exe) instead of just running it directly.
I realize npx isn't explicitly stated as a supported option for running odiff, but it seemed like an easier option than requiring everyone to change the PATH environment variable. Or is there a better option besides installing it globally?
The text was updated successfully, but these errors were encountered:
I have a similar issue although I'm not even using npx. I just installed it using "npm install -g odiff-bin", but when running it from anywhere just using "odiff" it throws this very similar error:
SyntaxError: Invalid or unexpected token
at wrapSafe (node:internal/modules/cjs/loader:1515:18)
at Module._compile (node:internal/modules/cjs/loader:1537:20)
at Object..js (node:internal/modules/cjs/loader:1708:10)
at Module.load (node:internal/modules/cjs/loader:1318:32)
at Function._load (node:internal/modules/cjs/loader:1128:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49
Executing the odiff.exe file in node_modules/odiff-bin/bin directly works though
When running
npx odiff --help
on Windows, I receive this error:I believe the reason for this is that the little shell script that gets installed to
node_modules/.bin/odiff.cmd
is trying to run theodiff.exe
binary file via node (node node_modules/odiff-bin/bin/odiff.exe
) instead of just running it directly.I realize npx isn't explicitly stated as a supported option for running odiff, but it seemed like an easier option than requiring everyone to change the PATH environment variable. Or is there a better option besides installing it globally?
The text was updated successfully, but these errors were encountered: