新版本后,软件包不在npm注册表中

时间:2020-04-29 17:18:30

标签: jenkins npm package jenkins-pipeline private

我有一个用户范围内的NPM私有软件包。我npm install Works本地/ dev机器。 (npm已登录)

发布了新版本0.1.1-rc.4。 本地npm安装工程。 但是在詹金斯上说

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@username/package-name/-/package-name-0.1.1-rc.4.tgz
npm ERR! 404 
npm ERR! 404  '@username/package-name@0.1.1-rc.4' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

我在詹金斯凭证中拥有NPM_TOKEN。 并尝试: withEnv([“ NPM_TOKEN =凭据('NPM_TOKEN')”) 和 withCredentials([string(credentialsId:'NPM_TOKEN',变量:'NPM_TOKEN')])

注意:如果我只是使用以前的版本(0.1.1-rc.3),该版本仍会安装在各处,但不会安装新版本。

我迷路了,请帮助,谢谢

0 个答案:

没有答案