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"
  ]
}
相关推荐
灵感__idea2 小时前
Hello 算法:贪心的世界
前端·javascript·算法
GreenTea3 小时前
一文搞懂Harness Engineering与Meta-Harness
前端·人工智能·后端
killerbasd5 小时前
牧苏苏传 我不装了 4/7
前端·javascript·vue.js
吴声子夜歌5 小时前
ES6——二进制数组详解
前端·ecmascript·es6
码事漫谈5 小时前
手把手带你部署本地模型,让你Token自由(小白专属)
前端·后端
ZC跨境爬虫6 小时前
【爬虫实战对比】Requests vs Scrapy 笔趣阁小说爬虫,从单线程到高效并发的全方位升级
前端·爬虫·scrapy·html
爱上好庆祝6 小时前
svg图片
前端·css·学习·html·css3
王夏奇6 小时前
python中的__all__ 具体用法
java·前端·python
大家的林语冰6 小时前
《前端周刊》尤大开源 Vite+ 全家桶,前端工业革命启动;尤大爆料 Void 云服务新产品,Vite 进军全栈开发;ECMA 源码映射规范......
前端·javascript·vue.js
jiayong237 小时前
第 8 课:开始引入组合式函数
前端·javascript·学习