npm错误!发布不能在以前发布的文件上发布

npm错误!发布不能在以前发布的文件上发布,npm,package.json,Npm,Package.json,npm错误!发布失败,放入403 npm错误!代码E403 npm错误!您不能在以前发布的版本上发布:1.1.1.: 即使使用了npm版本补丁,我似乎也无法发布 以下是我的步骤: npm版本补丁,这会将my package.json更新为一个新版本,然后我使用npm publish,但是每次我都会收到这个错误,即使我收到一封电子邮件说它成功了,而且npm包似乎也被更新了 这是我的package.json { "name": "react-mapbox-helper", "vers

npm错误!发布失败,放入403 npm错误!代码E403 npm错误!您不能在以前发布的版本上发布:1.1.1.:

即使使用了
npm版本补丁
,我似乎也无法发布

以下是我的步骤:

npm版本补丁
,这会将my 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"
    }
}
{
“名称”:“react mapbox helper”,
“版本”:“1.1.1”,
“说明”:“用于显示带悬停的点要素的地图盒包装器”,
“main”:“dist/index.js”,
“类型”:“dist/index.d.ts”,
“脚本”:{
“构建”:“tsc”,
“补丁”:“npm版本补丁”,
“次要”:“npm版本次要”,
“主要”:“npm版本主要”,
“发布”:“npm发布”
},
“存储库”:{
“类型”:“git”,
“url”:“git”+https://github.com/leogoesger/react-mapbox-helper"
},
“关键词”:[],
“作者”:“邱利奥”,
“许可证”:“麻省理工学院”,
“臭虫”:{
“url”:”https://github.com/leogoesger/react-mapbox-helper/issues"
},
“主页”:https://github.com/leogoesger/react-mapbox-helper",
“依赖性”:{
“类型脚本”:“^2.9.2”,
“@types/mapbox gl”:“^0.45.2”,
@types/react:“^16.4.6”
},
“依赖项”:{
“地图盒gl”:“^0.47.0-beta.1”,
“反应”:“^16.4.1”
}
}

Jut遇到了同样的问题;我意识到我已经(从另一个工作站)发布了我的软件包的一个版本,它是我试图发布的版本。也许这对你也有用。