cdxgen icon indicating copy to clipboard operation
cdxgen copied to clipboard

cdxgen plugins was not found

Open vveider opened this issue 1 year ago • 7 comments

Whatever I do, I cannot install cdxgen plugins so that there is no error in console log. cdxgen plugins was not found. Please install with npm install -g @cyclonedx/cdxgen-plugins-bin Is there a way I can resolve this ot this is know bug?

I am using extracted appimage as a binary and locally installed nodejs. Tried running npm from extracted image but with no luck.

vveider avatar Apr 27 '24 10:04 vveider

@vveider The plugins are available with default npm install and in the container image. It is currently not bundled with the AppImage since this line only installs production dependencies.

https://github.com/CycloneDX/cdxgen/blob/17b83f9082a65da5f308df978cd0293c6a58627a/appimage-builder.yml#L11

Could you send a pull request by removing the --only argument and testing the resulting appimage locally?

prabhu avatar Apr 27 '24 11:04 prabhu

I meant that I've done npm install -g @cyclonedx/cdxgen-plugins-bin before running cdxgen but this did not help. As did not running npm from AppImage and running local npm with --prefix to squashfs-root/usr/bin/nodejs/lib/node_modules/npm/node_modules/ Possibly I am installing requred npm module wrong?

vveider avatar Apr 27 '24 13:04 vveider

@vveider may be you need to set the environment variable CDXGEN_PLUGINS_DIR to the global install directory pointing to plugins. I think the issue is that we are mixing node within the appimage with a global installed one.

prabhu avatar Apr 28 '24 13:04 prabhu