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"
  ]
}
相关推荐
海鸥两三2 小时前
uniapp 小程序引入 uview plus 框架,获得精美的UI框架
前端·vue.js·ui·小程序·uni-app
lightgis3 小时前
16openlayers加载COG(云优化Geotiff)
前端·javascript·html·html5
小飞大王6663 小时前
TypeScript核心类型系统完全指南
前端·javascript·typescript
你的人类朋友5 小时前
✍️记录自己的git分支管理实践
前端·git·后端
合作小小程序员小小店5 小时前
web网页开发,在线考勤管理系统,基于Idea,html,css,vue,java,springboot,mysql
java·前端·vue.js·后端·intellij-idea·springboot
防火墙在线5 小时前
前后端通信加解密(Web Crypto API )
前端·vue.js·网络协议·node.js·express
Jacky-0085 小时前
Node + vite + React 创建项目
前端·react.js·前端框架
CoderYanger6 小时前
前端基础——CSS练习项目:百度热榜实现
开发语言·前端·css·百度·html·1024程序员节
i_am_a_div_日积月累_6 小时前
10个css更新
前端·css
倚栏听风雨7 小时前
npm命令详解
前端