簡體   English   中英

如何推送 NPM Package 到 Azure Artifact Feed?

[英]How to Push NPM Package to Azure Artifact Feed?

我錯誤地從 Azure Artifact Feed 中刪除了一個 NPM Package,然后也從 Recyclebin 中刪除了它。 現在,在嘗試將 NPM package 推送回 Azure Artifact Feed 時,我收到以下錯誤消息。 如何將相同的 package 再次推送到 Artifact Feed?

> npm --registry https://pkgs.dev.azure.com/maryodavid0305/Platform/_packaging/test/npm/registry/ publish jdmessenger-1.0.0.tgz
npm notice
npm notice package: @jd-libs/jdmessenger@1.0.0
npm notice === Tarball Contents ===
npm notice 2.1kB dist/cjs/events.js
npm notice 938B  dist/esm/events.js
npm notice 5.2kB dist/cjs/executor.js
npm notice 4.0kB dist/esm/executor.js
npm notice 712B  dist/cjs/index.js
npm notice 87B   dist/esm/index.js
npm notice 1.9kB package.json
npm notice 1.0kB dist/cjs/events.js.map
npm notice 975B  dist/esm/events.js.map
npm notice 3.4kB dist/cjs/executor.js.map
npm notice 3.4kB dist/esm/executor.js.map
npm notice 141B  dist/cjs/index.js.map
npm notice 145B  dist/esm/index.js.map
npm notice 602B  README.md
npm notice 1.0kB dist/cjs/events.d.ts
npm notice 1.0kB dist/esm/events.d.ts
npm notice 1.9kB src/tests/events.spec.ts
npm notice 1.7kB src/events.ts
npm notice 1.3kB dist/cjs/executor.d.ts
npm notice 1.3kB dist/esm/executor.d.ts
npm notice 5.2kB src/tests/executor.spec.ts
npm notice 5.8kB src/executor.ts
npm notice 54B   dist/cjs/index.d.ts
npm notice 54B   dist/esm/index.d.ts
npm notice 54B   src/index.ts
npm notice === Tarball Details ===
npm notice name:          @jd-libs/jdmessenger
npm notice version:       1.0.0
npm notice package size:  8.8 kB
npm notice unpacked size: 44.1 kB
npm notice shasum:        294b8c616c6a846d1b5ef72fca3df4412c1830d4
npm notice integrity:     sha512-3Q3rsjeOMUms7[...]NVf6QC56tHDyw==
npm notice total files:   25
npm notice
npm ERR! code E403
npm ERR! 403 403 Forbidden - The version 1.0.0 of @jd-libs/jdmessenger has been deleted. It cannot be restored or pushed. (DevOps Activity ID: 54385895-A886-4BB4-A948-AF65CEE0F8A7) - PUT https://pkgs.dev.azure.com/maryodavid0305/Platform/_packaging/test/npm/registry/@jd-libs%2fjdmessenger - The version 1.0.0 of @jd-libs/jdmessenger has been deleted. It cannot be restored or pushed.
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\maryo\AppData\Roaming\npm-cache\_logs\2022-02-09T09_50_24_857Z-debug.log

據我所知,做到這一點的唯一方法是推出另一個版本。

如果可能,升級版本號,即1.0.1,然后推送。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM