npm 打包上传命令,撤销错误版本

添加npm用户账号

复制代码
npm adduser

上传包命令

复制代码
npm publish

撤销错误版本example:

bash 复制代码
npm unpublish longze-guide@0.1.0 --force

package.json example

bash 复制代码
{
  "name": "longze-guide",
  "version": "0.1.1",
  "private": false,
  "description": "A lightweight, flexible, and themeable in-app product tour/guide component for Vue 2 and Vue 3.",
  "keywords": [
    "vue",
    "vue3",
    "tour",
    "guide",
    "onboarding",
    "tooltip"
  ],
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/2441630833/longze-guide.git"
  },
  "homepage": "https://github.com/2441630833/longze-guide#readme",
  "bugs": {
    "url": "https://github.com/2441630833/longze-guide/issues"
  },
  "main": "src/components/longze-guide.vue",
  "module": "src/components/longze-guide.vue",
  "exports": {
    ".": "./src/components/longze-guide.vue"
  },
  "files": [
    "src/components/longze-guide.vue",
    "README.md",
    "LICENSE"
  ],
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "core-js": "^3.8.3",
    "longze-guide": "^0.1.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.16",
    "@babel/eslint-parser": "^7.12.16",
    "@vue/cli-plugin-babel": "~5.0.0",
    "@vue/cli-plugin-eslint": "~5.0.0",
    "@vue/cli-service": "~5.0.0",
    "eslint": "^7.32.0",
    "eslint-plugin-vue": "^8.0.3"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/vue3-essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "@babel/eslint-parser"
    },
    "rules": {}
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not dead",
    "not ie 11"
  ]
}
相关推荐
自学it的攻城狮13 分钟前
elpis-core ,koa实现的系统底座, 沉淀80% 的通用能力,剩下20% 用于定制化开发
前端
CappuccinoRose1 小时前
模块化体系
前端·import·export·es modules
AIDANHANG1 小时前
放开靠时间戳对日志前先核请求ID跨服务传播与采样关联
前端·人工智能
半生过往3 小时前
前端学 Java 课程笔记
java·前端·笔记
广州华水科技4 小时前
2026年单北斗GNSS变形监测系统推荐,破解水库安全监测难题
前端
独爱香菜4 小时前
Next.js 15 + Cloudflare Workers 实战:零中间件多语言 SEO 站点架构
前端
计算机魔术师4 小时前
DeepSeek、Qwen3比肩GPT-5,本地跑大模型的时代来了
前端
xcyxiner4 小时前
flutter wsl2安装记录(使用宿主机虚拟机)
前端·flutter
前端炒粉4 小时前
长会话虚拟滚动与渲染优化
前端·javascript·vue.js
苦夏木禾5 小时前
tree-fs 批量创建文件
node.js