-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Bug report: Errors during grunt dev and grunt prod #575
Comments
Figured it out. Looks like it fails on NodeJS v12.4.0 and npm v6.9.0 I downgraded to v11.15.0 and I can get it to work. Closing the issue |
Got the same issue. Don't forget to clear your node_module folder and run |
This one bit me too. In order to build the CyberChef on a recent Debian GNU linux I made this: # as a normal user (NOT root)
# Install the **latest LTS version 10 of Node.js** and its package manager, npm using the 'nvm' tool:
# - see https://linuxize.com/post/how-to-install-node-js-on-debian-10/#installing-nodejs-and-npm-using-nvm
# '!!!IMPORTANT!!! the build is fully suported on the nodejs 10.* LTS version as stated here: https://github.com/gchq/CyberChef#nodejs-support
# then clone the CyberChef github repository
git clone https://github.com/gchq/CyberChef.git
# Change to the cloned CyberChef directory
cd CyberChef
# Install nodejs modules
npm install
# !!!IMPORTANT!!! - do NOT try to fix reported vulnerabilities and obsolete modules with 'npm audit fix' or the build will be broken
# After all dependencies are installed run production build with grunt
time ./node_modules/grunt/bin/grunt prod --force
# Oneliner for build cloned repository which must be run in the CyberChef root folder:
rm -fr ./build ./node_modules package-lock.json && git checkout . && npm install && time ./node_modules/grunt/bin/grunt prod --force |
Summary
I am attempting to use the latest version of CyberChef on Ubuntu 18.04. When I run
grunt dev
I get an error during the Regenerating Config Files section. I also get an error when attempting to view the webpage aftergrunt dev
finishes. Similar errors happen duringgrunt prod
I am using NodeJS v12.4.0 and npm v6.9.0
Example
Error during grunt dev
At the end of grunt dev I get
ℹ 「wdm」: Failed to compile.
I can visit the webserver running at 8080 but I get the following error:
grunt prod
errors:The text was updated successfully, but these errors were encountered: