Skip to content

npm2rpm and scoped namesΒ #70

@mrdvt92

Description

@mrdvt92

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions