返回顶部
n

npmnpm 包管理

Use npm for package install, version inspection, dist-tags, and safe publish flows. Use when working on OpenClaw or ClawHub package releases, validating published versions, or handling npm auth/OTP publishing.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
380
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

npm

npm

使用此技能进行 npm 包操作,采用发布安全默认设置。

范围

  • - 本单仓库中的 OpenClaw 包(核心 + 插件)
  • 涉及 npm 时的 ClawHub CLI 包/发布检查
  • npm 发布、dist-tag 和版本验证

安全护栏

  • - 除非明确要求发布 openclaw,否则切勿从仓库根目录发布。
  • 对于仅插件的发布,仅发布已更改的插件,保持 openclaw 不变。
  • 对于 beta 标签,发布匹配的 beta 版本(例如 2026.2.15-beta.1),并使用 --tag beta。
  • 使用 npm view version --userconfig $(mktemp) 进行只读验证。
  • 如果需要 OTP,请在发布前通过 tmux 中的 1password 技能获取。

快速检查

bash
npm --version
npm whoami
npm view openclaw version --userconfig $(mktemp)

OpenClaw 发布安全流程

  1. 1. 验证目标包和本地版本:

bash
npm view version --userconfig $(mktemp)
node -p require(./package.json).version

  1. 2. 仅从包目录发布:

bash
cd
npm publish --access public --otp=

  1. 3. 验证已发布的版本:

bash
npm view version --userconfig $(mktemp)

  1. 4. 对于 beta 版本:

bash
npm publish --access public --tag beta --otp=

ClawHub 互操作

  • - 仅将 npm 用于 ClawHub 包的版本/认证问题。
  • 使用 clawhub CLI 进行技能搜索/安装/更新/发布工作流。
  • 如果需要两者:先发布 npm 包,然后运行 clawhub 发布/更新命令。

常用命令

bash

检查包元数据


npm view dist-tags --json --userconfig $(mktemp)
npm view versions --json --userconfig $(mktemp)

管理 dist-tags

npm dist-tag add @ beta npm dist-tag add @ latest

验证当前认证上下文

npm whoami npm profile get --json

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 npm-1776091929 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 npm-1776091929 技能

通过命令行安装

skillhub install npm-1776091929

下载

⬇ 下载 npm v1.0.0(免费)

文件大小: 1.6 KB | 发布时间: 2026-4-15 13:38

v1.0.0 最新 2026-4-15 13:38
- Initial release of the npm skill for package management and release workflows.
- Supports npm package install, version inspection, dist-tag management, and publishing with OTP safety.
- Provides guardrails for OpenClaw and plugin releases to prevent publishing errors.
- Includes step-by-step flow for release-safe publishing, including beta tag handling.
- Outlines integration points with ClawHub for seamless package management.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部