最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

repository - publish npm module to private repo - Stack Overflow

programmeradmin6浏览0评论

I’m trying to publish my npm module to a Nexus repository, but when I use npm publish, it fails due to authentication issues. Since the repository is hosted on AWS, it’s redirecting to a different authentication method, and I want to use basic authentication for the upload. I also attempted to use the following curl command:

curl -u "$NEXUS_USERNAME:$NEXUS_PASSWORD" -X POST \
-F "rfile=@./$PACKAGE_TGZ" \
"/service/rest/v1/components?repository=npm-internal"

However, this resulted in a 405 error. What other options should I try?

发布评论

评论列表(0)

  1. 暂无评论