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

pnpx regression on 7 #4714

Closed
gengjiawen opened this issue May 11, 2022 · 1 comment · Fixed by #4717
Closed

pnpx regression on 7 #4714

gengjiawen opened this issue May 11, 2022 · 1 comment · Fixed by #4717
Assignees

Comments

@gengjiawen
Copy link

gengjiawen commented May 11, 2022

pnpm version:

pnpm 7.0.1

Code to reproduce the issue:

pnpx gengjiawen/envinfo

Expected behavior:

output normally like

+ envinfo 7.8.0

Progress: resolved 1, reused 0, downloaded 1, added 1, done

  System:
    OS: Linux 5.16 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (16) x64 AMD EPYC 7B13
    Memory: 43.51 GB / 62.80 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash

Actual behavior:

gitpod /workspace/examples-minimio (master) $ pnpx gengjiawen/envinfo
../.pnpm-store/v3/tmp/dlx-2902           | Progress: resolved 0, reused 1, downloaded 0, added 0
../.pnpm-store/v3/tmp/dlx-2902           |   +1 +
Packages are cloned from the content-addressable store to the virtual store.
  Content-addressable store is at: /workspace/.pnpm-store/v3
  Virtual store is at:             ../.pnpm-store/v3/tmp/dlx-2902/node_modules/.pnpm
 ENOENT  ENOENT: no such file or directory, open '/workspace/.pnpm-store/v3/tmp/dlx-2902/node_modules/gengjiawen/envinfo/package.json'

Additional information:

  System:
    OS: Linux 5.16 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (16) x64 AMD EPYC 7B13
    Memory: 43.51 GB / 62.80 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
    GLibc: 2.31
  Binaries:
    Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node

works perfectly on pnpm 6.

@kenrick95
Copy link
Member

Looks like pnpx tries to read package.json from non-existent location

It created:

/path/to/tmp/dlx-xxxx/node_modules/envinfo/package.json

but trying to read from:

/path/to/tmp/dlx-xxxx/node_modules/gengjiawen/envinfo/package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants