【问题标题】:How to Push NPM Package to Azure Artifact Feed?如何将 NPM 包推送到 Azure 工件源?
【发布时间】:2022-02-09 19:17:58
【问题描述】:

我错误地从 Azure Artifact Feed 中删除了一个 NPM 包,然后也从 Recyclebin 中删除了它。现在,在尝试将 NPM 包推送回 Azure Artifact Feed 时,我收到以下错误消息。如何将同一个包再次推送到 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

【问题讨论】:

    标签: azure npm azure-devops azure-artifacts


    【解决方案1】:

    据我所知,唯一的方法是推送另一个版本。

    如果可能,升级版本号,即1.0.1,然后推送。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-10
      • 2019-07-04
      • 2020-06-27
      • 1970-01-01
      • 2020-04-12
      相关资源
      最近更新 更多