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"
  ]
}
相关推荐
海上彼尚4 分钟前
Nodejs也能写Agent - 22.LangGraph篇 - 上下文工程
前端·javascript·人工智能·langchain·node.js
阳光是sunny37 分钟前
LangGraph实战教程:预定义状态MessagesState与AgentState
前端·人工智能·后端
GuWenyue1 小时前
等AI回复卡顿到劝退?Vue3+DeepSeek流式输出实战,70行代码实现打字机效果
前端·人工智能·客户端
Jackson__1 小时前
AI Agent 的能力从哪里来?一文讲清后训练、上下文学习和外部能力
前端·agent·ai编程
默_笙1 小时前
🎉 AI 项目里为什么需要 BFF?因为我实在不想在前端处理二进制流
前端·javascript
Revolution611 小时前
改一个订单筛选,为什么要在六个目录里来回找,前端项目目录到底要怎么拆
前端·前端工程化
阳光是sunny1 小时前
LangGraph高级教程:Multi Schema多状态管理详解
前端·人工智能·后端
mCell3 小时前
从 TodoList 到 Microsoft To Do:全栈工程师到底要管什么?
前端·编程语言·全栈
阳光是sunny3 小时前
LangGraph实战教程:状态管理与`graph.invoke`入参深度解析
前端·人工智能·后端