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

pnpm -g outdated not working #1378

Closed
nikoladev opened this issue Sep 19, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@nikoladev
Copy link
Contributor

commented Sep 19, 2018

pnpm version:

2.16.0

Expected behavior:

Running pnpm -g outdated should give me something like the following:

Package  Current  Wanted  Latest
pnpm     2.15.3   2.15.3  2.16.0

Actual behavior:

I get this:

 ERROR  ENOENT: no such file or directory, open '/Users/nikola/.npm-global/pnpm-global/1/1/package.json'

Possible clue

I noticed that the error message requests a folder that isn't there:

/Users/nikola/.npm-global/pnpm-global/1/1/package.json

However, if we remove one of the (nonexistent) subfolders from the requested path then it does exist:

/Users/nikola/.npm-global/pnpm-global/1/package.json

I tested this by manually changing this line and pnpm -g outdated started working again:

    prefix = path.join(opts.prefix, LAYOUT_VERSION) // original, with error
    prefix = path.join(opts.prefix)                 // afterwards, no error

Additional information:

node v8.12.0
npm v6.4.1
pnpm v2.16.0
macOS v10.13.6

@tzinmein

This comment has been minimized.

Copy link

commented Oct 23, 2018

Exact same issue, except I'm using NVM.

 ERROR  ENOENT: no such file or directory, open '/Users/tzinmein/.nvm/versions/node/v8.12.0/pnpm-global/1/1/package.json'

@tomcon

This comment has been minimized.

Copy link

commented Oct 29, 2018

This is quite important and I'm still getting this error
surprised it wasn't dealt with in 2.17.5

zkochan added a commit that referenced this issue Oct 29, 2018

zkochan added a commit that referenced this issue Oct 29, 2018

@zkochan zkochan closed this in c66de0b Oct 29, 2018

@zkochan

This comment has been minimized.

Copy link
Member

commented Oct 31, 2018

🚢 2.17.6

@nikoladev

This comment has been minimized.

Copy link
Contributor Author

commented Nov 1, 2018

Can confirm that it's solved for me! Thanks :)

@tzinmein

This comment has been minimized.

Copy link

commented Nov 1, 2018

Perfect, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.