Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when run dexcalibur #53

Closed
visualsayed opened this issue Apr 20, 2021 · 5 comments
Closed

Error when run dexcalibur #53

visualsayed opened this issue Apr 20, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@visualsayed
Copy link

Given this command:

node --max-old-space-size=8192 ./dexcalibur

I get the following error:

\AppData\Roaming\npm\node_modules\dexcalibur\dexcalibur:5
if [ $# = 2 ] && [ $1 = "--max-heap" ] && [ $2 -ge 1024 ]
^

SyntaxError: Unexpected token '['
�[90m at wrapSafe (internal/modules/cjs/loader.js:979:16)�[39m
�[90m at Module._compile (internal/modules/cjs/loader.js:1027:27)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:928:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)�[39m
�[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)�[39m
�[90m at internal/main/run_main_module.js:17:47�[39m

@visualsayed visualsayed added the bug Something isn't working label Apr 20, 2021
@visualsayed
Copy link
Author

My OS: is windows 10 64

@FrenchYeti
Copy link
Owner

Hi,

./dexcaliburis a bash script wrapping 'node ...'.

So, on Windows, you should execute ./dexcalibur.jsinstead of ./dexcalibur.

Be aware, Dexcalibur has not been tested on windows.

@visualsayed
Copy link
Author

Thanks @FrenchYeti :-)

I got this error:

Error: Cannot find module '../build/Release/node_xz.node'
Require stack:

  • C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\node_modules\xz\lib\xz.js
  • C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\src\FridaHelper.js
  • C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\src\Configuration.js
  • C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\src\DexcaliburEngine.js
  • C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\dexcalibur.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\node_modules\xz\lib\xz.js:4:17)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\node_modules\xz\lib\xz.js',
    'C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\src\FridaHelper.js',
    'C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\src\Configuration.js',
    'C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\src\DexcaliburEngine.js',
    'C:\Users\Sayed\AppData\Roaming\npm\node_modules\dexcalibur\dexcalibur.js'
    ]
    }

@FrenchYeti
Copy link
Owner

FrenchYeti commented Apr 20, 2021

Actually, you cannot use Dexcalibur as-is on Windows.

For Windows users, node_xzis the main issue but it exists a simple workaround : By following this comment #35 (comment) you could be able to make change and install Dexcalibur properly on Windows.

@FrenchYeti
Copy link
Owner

Windows is now supported by version >= 0.7.10
However, dexcalibur must be launched directly by calling it with "node" like that node <FULL_PATH>/dexcalibur.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants