بنقرة واحدة
update-packages
Update Claude Code and other npm packages in pkgs/
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Update Claude Code and other npm packages in pkgs/
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | update-packages |
| description | Update Claude Code and other npm packages in pkgs/ |
| user-invocable | true |
Update npm packages in the /data/machine/pkgs/ directory, including Claude Code.
Update Claude Code dependencies
cd /data/machine/pkgs/claude-code && npm update
This updates the @anthropic-ai/claude-code dependency to the latest version and resolves transitive dependencies.
Build the package to test
cd /data/machine && nix build .#packages.x86_64-linux.claude-code
This validates that the updated dependencies work correctly with the Nix build system.
Verify the build
./result/bin/claude --version
Confirm the updated Claude Code is working properly.
Update package-lock.json
After npm update, the package-lock.json should be updated. If changes are made to pkgs/claude-code/package-lock.json, commit them.
switch-to-configuration