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"
  ]
}
相关推荐
牛奶40 分钟前
2026年大模型怎么选?前端人实用对比
前端·人工智能·ai编程
牛奶42 分钟前
前端人为什么要学AI?
前端·人工智能·ai编程
Kagol3 小时前
🎉OpenTiny NEXT-SDK 重磅发布:四步把你的前端应用变成智能应用!
前端·开源·agent
GIS之路4 小时前
ArcGIS Pro 中的 notebook 初识
前端
JavaGuide4 小时前
7 道 RAG 基础概念知识点/面试题总结
前端·后端
ssshooter5 小时前
看完就懂 useSyncExternalStore
前端·javascript·react.js
格砸6 小时前
从入门到辞职|从ChatGPT到OpenClaw,跟上智能时代的进化
前端·人工智能·后端
Live000006 小时前
在鸿蒙中使用 Repeat 渲染嵌套列表,修改内层列表的一个元素,页面不会更新
前端·javascript·react native
柳杉6 小时前
使用Ai从零开发智慧水利态势感知大屏(开源)
前端·javascript·数据可视化