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

npm2rpm and scoped names #70

Open
mrdvt92 opened this issue Oct 26, 2022 · 0 comments
Open

npm2rpm and scoped names #70

mrdvt92 opened this issue Oct 26, 2022 · 0 comments

Comments

@mrdvt92
Copy link

mrdvt92 commented Oct 26, 2022

I could not build a package that has a scoped dependency. It appears that something is not working correctly with this change.

On https://nodered.org/docs/creating-nodes/packaging#naming

"Packages should use a scoped name - such as @myScope/node-red-sample. That can be under a user scope or an organisation scope."

When I went to build a package, rpmbuild returns this error.

ERROR: the path for dependency "@node-red/editor-api" already exists

This could mean that bundled modules are being installed.  Bundled libraries are
forbidden in Fedora. For more information, see:
    <https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries>

It is generally reccomended to remove the entire "node_modules" directory in
%prep when it exists. For more information, see:
    <https://fedoraproject.org/wiki/Packaging:Node.js#Removing_bundled_modules>

If you have obtained permission from the Fedora Packaging Committee to bundle
libraries, please use `%nodejs_fixdep -r` in %prep to remove the dependency on
the bundled module. This will prevent an unnecessary dependency on the system
version of the module and eliminate this error.
error: Bad exit status from /var/tmp/rpm-tmp.yKbf3S (%install)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant