简体   繁体   English

运行了npm publish,没有错误,但是看不到更新的软件包

[英]ran npm publish without error but cannot see updated package

I updated my version in package.json and ran "npm publish". 我在package.json中更新了版本,并运行了“ npm publish”。 I did not see any error and see the log "package-name prepublishOnly" in terminal. 我没有看到任何错误,并且在终端中看到了日志“ package-name prepublishOnly”。 Now if I go to https://www.npmjs.com/package/ , I could not see updated package. 现在,如果我访问https://www.npmjs.com/package/ ,则看不到更新的软件包。 Then if I ran "npm publish" again, it gives me error as below: 然后,如果我再次运行“ npm publish”,则会出现以下错误:

npm ERR! publish Failed PUT 403
npm ERR! code E403
npm ERR! Forbidden The feed already contains the package 'package-name' at version 'X.Y.Z': 'package-name'

I would like to know why and if I publish the package successfully or not. 我想知道为什么以及是否成功发布该软件包。

Give it some time. 给它一点时间。 Your package is probably uploaded, the webpage might not be updated immediately yet. 您的包裹可能已上传,该网页可能尚未立即更新。

I thought I was seeing the same thing with my package as of 11:38AM PT on 2/28/2019, as the page of my package would show the older version. 我以为我在2019年2月28日上午11:38的软件包中看到的是相同的东西,因为软件包的页面将显示较旧的版本。 However, when searching for my package I would see the new version. 但是,在搜索我的软件包时,我会看到新版本。 Most importantly, running npm init and npm install mypackage would install the new version, which is what matters the most anyway. 最重要的是,运行npm initnpm install mypackage将安装新版本,无论如何,这才是最重要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM