Skip to content

Bug report: issue compiling CyberChef #1166

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

Open
sssseossss opened this issue Feb 5, 2021 · 5 comments
Open

Bug report: issue compiling CyberChef #1166

sssseossss opened this issue Feb 5, 2021 · 5 comments
Labels

Comments

@sssseossss
Copy link

Describe the bug
when running npm install I get the following:

[email protected] postinstall
npx grunt exec:fixCryptoApiImports

Running "exec:fixCryptoApiImports" (exec) task

/bin/sh: 1: [[: not found

I checked and confirmed that I have bash as the shell. Trying it on latest Kali.

To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

  1. follow the exact installation steps on latest Kali OS. Checked on zsh and bash as default shell for both, root and kali user.

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (if relevant, please complete the following information):

  • OS: [e.g. Windows]
  • Browser: [e.g. chrome 72, firefox 60]
  • CyberChef version: [e.g. 9.7.14]

Additional context
Add any other context about the problem here.

@sssseossss sssseossss added the bug label Feb 5, 2021
@jimmybrancaccio
Copy link

@spectre013
Copy link

Running into the same issue on MAC

100 verbose node v15.12.0
101 verbose npm  v7.6.3
102 error code 127
103 error path /Users/<username>/opt/CyberChef
104 error command failed
105 error command sh -c npx grunt exec:fixCryptoApiImports
106 verbose exit 127

@mt3571
Copy link
Contributor

mt3571 commented Mar 31, 2021

It might be worth trying against Node v10, as that is the latest version CyberChef supports

@ghost
Copy link

ghost commented Dec 17, 2021

The problem is, grunt wants to use /bin/sh, here's how to fix the issue for *nix users.

In your Gruntfile.js file, add the below code to the fixCryptoApiImports section of your file.

options: {
  shell: "/bin/bash"
},

Screenshot_20211217_171850

@ghost
Copy link

ghost commented Dec 17, 2021

It might be worth trying against Node v10, as that is the latest version CyberChef supports

Yep, v10 is a must for CyberChef. I installed node via nvm to allow the latest LTS while also supporting CyberChef and before I remembered to set to v10 for CC, I tried loading up the dev version. It incorrectly gave errors about my browsers being unsupported. Using v10, CC loads just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants