Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Running into npx bug, and npx appears to be a dead project. #1466

Closed
BertusVanZyl opened this issue Sep 11, 2019 · 5 comments
Closed

Running into npx bug, and npx appears to be a dead project. #1466

BertusVanZyl opened this issue Sep 11, 2019 · 5 comments
Labels

Comments

@BertusVanZyl
Copy link

This is the bug I am experiencing:
zkat/npx#100

Neutrino uses npx to create a new project, but npx does not work.

Also, npx appears to be dead, see this issue: zkat/npx#223

You might consider migrating away from npx for these reasons.

@edmorley
Copy link
Member

Hi! I've personally used Yarn for years and if someone asked me which they should use, would always recommend it over NPM - so I'm not too up to speed on the current npx situation.

Neutrino doesn't use npx per-se - but mentions it as a short-cut in the docs. I agree that if it's no longer reliable we should remove it. However the linked issue only affects one platform and in a particular edge case, and npx still ships with NPM, so until more things appear broken, might be worth still using in the docs?

We could always list both the npx and npm commands if that helps?

@edmorley edmorley added the docs label Sep 11, 2019
@edmorley
Copy link
Member

In fact the old npx repo now links to https://github.com/npm/npx -- which looks more actively maintained. I would check whether that issue occurs under the new version, and if so, reopen the issue against the new repo to ensure it gets fixed.

@BertusVanZyl
Copy link
Author

BertusVanZyl commented Sep 11, 2019

If you are aware of the potential risk, and accepted it that is good. Just did not want you to be surprised by your dependencies suddenly becoming unusable, and people following your documentation getting errors (like I did).

The problem is at first glance it looks like your software is at fault, when its actually npx.

Here is the issue in the newer npx repo: npm/npx#6

@edmorley
Copy link
Member

Agree totally and I wasn't aware of this bug, so thank you for filing :-)

@edmorley
Copy link
Member

Closing this out for now, since npx appears to still be an active project (and still bundled with node/npm), and whilst this bug does exist, it's (a) somewhat of an edge case so I think not significant enough to mean we don't say to use npx in our docs, (b) something that needs to be fixed upstream, so nothing actionable for us to do (with the docs change ruled out).

Thank you for raising the visibility of the issue and fingers crossed the upstream project fixes it :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants