fix(updater): use login shell for tool lifecycle commands#4633
Open
JK-97 wants to merge 1 commit into
Open
Conversation
Replace with in so that
(which invokes ) is sourced before executing
install/update commands. Without this, GUI apps on macOS inherit a minimal
PATH from launchd () and cannot find tools
like npm <command>
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term>
npm help npm more involved overview
All commands:
access, adduser, approve-scripts, audit, bugs, cache, ci,
completion, config, dedupe, deny-scripts, deprecate, diff,
dist-tag, docs, doctor, edit, exec, explain, explore,
find-dupes, fund, get, help, help-search, init, install,
install-ci-test, install-test, link, ll, login, logout, ls,
org, outdated, owner, pack, ping, pkg, prefix, profile,
prune, publish, query, rebuild, repo, restart, root, run,
sbom, search, set, shrinkwrap, stage, star, stars, start,
stop, team, test, token, trust, undeprecate, uninstall,
unpublish, unstar, update, version, view, whoami
Specify configs in the ini-formatted file:
/Users/shenmingjie/.npmrc
or on the command line via: npm <command> --key=value
More configuration info: npm help config
Configuration fields: npm help 7 config
npm@11.16.0 /opt/homebrew/lib/node_modules/npm that are installed in or .
Fixes the "npm: command not found" error when installing Codex (and
other npm-based tools) from the CC Switch GUI on macOS.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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 / 概述
Related Issue / 关联 Issue
没有现成 issue,留空或填
N/A。Screenshots / 截图
没有实际截图的话删掉这个表格也行。
Checklist / 检查清单