docs: replace removed npm bin -g in install debugging#45
Merged
Conversation
npm 9 removed `npm bin`; the PATH check in the install-debugging reference silently fails on any modern npm. Use `npm prefix -g` and note where the bin directory lives per platform, matching the fix-a-failed-install guide. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the CLI install debugging documentation to avoid the removed npm bin -g command by switching to npm prefix -g, keeping the “global bin on PATH” troubleshooting steps usable on modern npm versions.
Changes:
- Replaces
npm bin -gwithnpm prefix -gin the “npm global install” PATH verification snippet. - Adds an explanatory note describing where the global bin directory lives on macOS/Linux vs Windows.
The PATH grep compared entries against npm prefix -g, but the directory that must be on PATH is <prefix>/bin on macOS/Linux. Use grep -Fx against "$(npm prefix -g)/bin" for an exact-entry check in install-debugging and the fix-a-failed-install guide, and note the Windows difference explicitly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm binwas removed in npm 9, so the PATH check in the install-debugging reference fails on any modern npm. This swaps it fornpm prefix -gand notes where the global bin directory lives per platform — matching the wording the fix-a-failed-install guide adopted while addressing review feedback (#41).Why now
Resolving the Copilot review threads on the guides stack left the guide using
npm prefix -gwhile this reference still taught the removed command.🤖 Generated with Claude Code