Skip to content

Wrong NPM export for scoped packages #274

@corderop

Description

@corderop

I have come across this issue while trying to export my NPM global installs. More precisely, the problem was with @google/gemini-cli package. When a scoped package is installed, the folder created in npm modules is slightly different:

├── @google
│   └── gemini-cli
├── npm
└── pnpm

This command only takes the @google part, when the rest is ignored:

ls -1 $HOMEBREW_PREFIX/lib/node_modules | grep -v npm >"$NPM_DUMP_FILE_PATH"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions