← 返回
开发者工具 中文

npm

Use npm for package install, version inspection, dist-tags, and safe publish flows. Use when working on OpenClaw or ClawHub package releases, validating publ...
使用 npm 进行包安装、版本检查、dist-tags 管理及安全发布流程。适用于 OpenClaw 或 ClawHub 包发布及验证发布。
jvy jvy 来源
开发者工具 clawhub v1.0.0 1 版本 99884.8 Key: 无需
★ 0
Stars
📥 867
下载
💾 155
安装
1
版本
#latest

概述

npm

Use this skill for npm package operations with release-safe defaults.

Scope

  • OpenClaw packages in this monorepo (core + plugins)
  • ClawHub CLI package/release checks when npm is involved
  • npm publish, dist-tag, and version verification

Guardrails

  • Never publish from repo root unless explicitly requested for openclaw.
  • For plugin-only releases, publish only changed plugins and keep openclaw untouched.
  • For beta tags, publish matching beta versions (for example 2026.2.15-beta.1) with --tag beta.
  • Use npm view version --userconfig "$(mktemp)" for read-only verification.
  • If OTP is required, fetch it through the 1password skill in tmux before publish.

Quick Checks

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

OpenClaw Release-safe Flow

  1. Verify target package and local version:
npm view <package-name> version --userconfig "$(mktemp)"
node -p "require('./package.json').version"
  1. Publish from package directory only:
cd <package-dir>
npm publish --access public --otp="<otp>"
  1. Verify published version:
npm view <package-name> version --userconfig "$(mktemp)"
  1. For beta releases:
npm publish --access public --tag beta --otp="<otp>"

ClawHub Interop

  • Use npm only for ClawHub package version/auth concerns.
  • Use clawhub CLI for skill search/install/update/publish workflows.
  • If both are needed: publish npm package first, then run clawhub publish/update commands.

Useful Commands

# Inspect package metadata
npm view <package-name> dist-tags --json --userconfig "$(mktemp)"
npm view <package-name> versions --json --userconfig "$(mktemp)"

# Manage dist-tags
npm dist-tag add <package-name>@<version> beta
npm dist-tag add <package-name>@<version> latest

# Verify current auth context
npm whoami
npm profile get --json

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 17:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

wps

jvy
面向中国用户的WPS Office工作流:创建、编辑、审阅、转换及排查.docx/.xlsx/.pptx及WPS格式的文字/表格/演示文档。
★ 42 📥 23,316
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,906
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,425