-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Unable to build from source on Kali Linux #587
Comments
I can confirm the build steps above will lead to the reproduction of the error. ❌ Since I had the container up I attempted to resolve the vulnerabilities to see if it would positively affect the build. The original output was: Ran: New output: Second build continues to fail as documented previously. ❌ Ran: New output: Third build attempt resulted in new output that failed spectacularly. ❌ └─# npm run build
> bloodhound@4.2.0 build
> sh -c 'if [ "$(run-s env:os)" == "win32" ]; then run-s compile "package -- --icon=src/img/icon.ico ${*}"; else run-s compile "package -- --icon=src/img/icon.icns ${*}" ; fi' --
--: 1: [:
> bloodhound@4.2.0 env:os
> node -e "console.log(process.platform)"
linux: unexpected operator
> bloodhound@4.2.0 compile
> webpack --config webpack.config.production.js
assets by status 1.93 MiB [cached] 1 asset
orphan modules 2.4 MiB [orphan] 758 modules
runtime modules 1.07 KiB 6 modules
modules by path ./node_modules/ 2.54 MiB 1150 modules
modules by path ./src/ 2.04 MiB
modules by path ./src/components/SearchContainer/ 25.8 KiB 20 modules
modules by path ./src/components/Float/ 19.4 KiB 14 modules
modules by path ./src/components/Modals/ 5.2 KiB 8 modules
modules by path ./src/components/Spotlight/ 2.66 KiB 2 modules
modules by path ./src/components/Tooltips/ 2.05 KiB 2 modules
modules by path ./src/components/*.css 1.87 KiB 2 modules
./src/index.js + 513 modules 1.98 MiB [not cacheable] [built] [code generated]
+ 15 modules
ERROR in ./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js 1:0-57
Module not found: Error: Can't resolve '../../core-js/object/assign' in '/BloodHoundAD-BloodHound-fca1cf8/node_modules/@babel/runtime-corejs2/helpers/esm'
Did you mean 'assign.js'?
BREAKING CHANGE: The request '../../core-js/object/assign' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/react-bootstrap/es/Accordion.js 1:0-66 18:43-51
@ ./node_modules/react-bootstrap/es/index.js 1:0-37 2:0-35
@ ./src/components/Float/Login.jsx 22:0-41 423:38-44
@ ./src/index.js 9:0-45 461:52-57 463:50-55
ERROR in ./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js 1:0-57
Module not found: Error: Can't resolve '../../core-js/object/create' in '/BloodHoundAD-BloodHound-fca1cf8/node_modules/@babel/runtime-corejs2/helpers/esm'
Did you mean 'create.js'?
BREAKING CHANGE: The request '../../core-js/object/create' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/react-bootstrap/es/Accordion.js 2:0-78 9:2-16
@ ./node_modules/react-bootstrap/es/index.js 1:0-37 2:0-35
@ ./src/components/Float/Login.jsx 22:0-41 423:38-44
@ ./src/index.js 9:0-45 461:52-57 463:50-55
ERROR in ./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js 1:0-53
Module not found: Error: Can't resolve '../../core-js/object/keys' in '/BloodHoundAD-BloodHound-fca1cf8/node_modules/@babel/runtime-corejs2/helpers/esm'
Did you mean 'keys.js'?
BREAKING CHANGE: The request '../../core-js/object/keys' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
@ ./node_modules/react-bootstrap/es/Alert.js 3:0-108 38:16-45
@ ./node_modules/react-bootstrap/es/index.js 3:0-29 4:0-27
@ ./src/components/Float/Login.jsx 22:0-41 423:38-44
@ ./src/index.js 9:0-45 461:52-57 463:50-55
3 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.74.0 compiled with 3 errors in 60264 ms
ERROR: "compile" exited with 2. |
Did you try |
Thanks @rvazarkar. I can confirm that command succeeds. Is that what I should be running instead of |
|
I get the same error that I originally reported:
|
The compilation error appears to be related to this:
|
You can probably get around this by going back to a lower node version. |
I think this issue can be closed now. Thank you for your help @rvazarkar! |
You can add a flag to allow the usage of old crypto functions. Example on Windows
|
Describe the bug
I am currently unable to build this tool from source on Kali Linux.
To Reproduce
Steps to reproduce the behavior:
docker pull kalilinux/kali-rolling:latest
docker run -it kalilinux/kali-rolling:latest /bin/bash
apt-get update
apt-get install npm wget
wget -O master.tar.gz https://github.com/BloodHoundAD/BloodHound/tarball/master
tar xzf master.tar.gz
cd BloodHoundAD-BloodHound-fca1cf8
npm install --global electron-packager
npm ci --legacy-peer-deps
npm run build
The text was updated successfully, but these errors were encountered: