The Wayback Machine - https://web.archive.org/web/20220601095425/https://github.com/npm/cli/pull/4778
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

Use node in and fallback to PATH if not found #4778

Merged
merged 1 commit into from Apr 20, 2022

Conversation

elibus
Copy link
Contributor

@elibus elibus commented Apr 19, 2022

Contrary to npm, npx does not check $basedir/node and fallbacks to node if $basedir/node is not found.

This pull request align the behaviour of npx with npm.

@elibus elibus requested a review from as a code owner Apr 19, 2022
Copy link
Contributor

@wraithgar wraithgar left a comment

Good catch, thank you.

@lukekarrys lukekarrys merged commit a677f49 into npm:latest Apr 20, 2022
27 checks passed
@ruyadorno ruyadorno mentioned this pull request Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants