Skip to content

pnpm pack can't pack a module in another directory? #3290

@karlvr

Description

@karlvr

pnpm version: 5.18.9

Code to reproduce the issue:

mkdir test-module
cd test-module
pnpm init
# press return until done
cd ..
pnpm pack test-module

Output:

ERROR  No package.json (or package.yaml, or package.json5) was found in "/Users/karlvr".

Expected behavior:

Should pack the module in test-module and deposit the test-module-0.0.0.tgz in the current working directory like npm pack test-module does.

Actual behavior:

ERROR  No package.json (or package.yaml, or package.json5) was found in "/Users/karlvr".

and no test-module-0.0.0.tgz created.

Additional information:

  • node -v prints: v14.15.5
  • Windows, macOS, or Linux?: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions