npm ERR!发布您无法发布以前发布的内容

时间:2018-07-18 01:28:35

标签: npm package.json

  

npm错误!发布失败的PUT 403   npm ERR!代码E403   npm ERR!您不能发布以前发布的版本:1.1.1。 :

即使使用npm version patch,我似乎也无法发布。

这是我的步骤:

npm version patch,这会将我的package.json更新为新版本,然后我使用npm publish,但每次都会收到此错误,即使我收到一封电子邮件,说它成功了,并且npm软件包似乎也已更新。

这是我的package.json

{
    "name": "react-mapbox-helper",
    "version": "1.1.1",
    "description": "A mapbox wrapper for displaying point features with hover",
    "main": "dist/index.js",
    "types": "dist/index.d.ts",
    "scripts": {
        "build": "tsc",
        "patch": "npm version patch",
        "minor": "npm version minor",
        "major": "npm version major",
        "publish": "npm publish"
    },
    "repository": {
        "type": "git",
        "url": "git+https://github.com/leogoesger/react-mapbox-helper"
    },
    "keywords": [],
    "author": "Leo Qiu <leoq91@gmail.com>",
    "license": "MIT",
    "bugs": {
        "url": "https://github.com/leogoesger/react-mapbox-helper/issues"
    },
    "homepage": "https://github.com/leogoesger/react-mapbox-helper",
    "devDependencies": {
        "typescript": "^2.9.2",
        "@types/mapbox-gl": "^0.45.2",
        "@types/react": "^16.4.6"
    },
    "dependencies": {
        "mapbox-gl": "^0.47.0-beta.1",
        "react": "^16.4.1"
    }
}

0 个答案:

没有答案
相关问题