尝试发布npm软件包时出错

问题描述

上周我发布的很好,但今天尝试了一下,它在我的任何计算机上均不起作用。很奇怪,起初我以为该服务有问题,但是后来我开始做一些我在网络上发现的解决方案,现在当我尝试npm adduser时就知道了:

npm ERR! code E404
npm ERR! 404 Not Found - PUT https://npm.pkg.github.com/estebanpadilla/-/user/org.couchdb.user:ludusy
npm ERR! 404 
npm ERR! 404  'org.couchdb.user:ludusy' is not in the npm registry.
npm ERR! 404 Your package name is not valid,because 
npm ERR! 404  1. name can only contain URL-friendly characters
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball,folder,http url,or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/estebanpadilla/.npm/_logs/2020-08-11T03_27_17_364Z-debug.log

我到处寻找可能的解决方案,但似乎没有任何效果。

npm whoami给出以下结果:

npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in.
npm ERR! need auth You need to authorize this machine using `npm adduser`

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/estebanpadilla/.npm/_logs/2020-08-11T03_29_57_501Z-debug.log

有人对如何使其再次工作有想法吗?

谢谢。

解决方法

您似乎尚未登录。我认为您需要运行npm adduser并按照提示进行操作。

快速提示-确保仔细阅读错误消息。我认为这行告诉您您到底需要做什么! npm ERR! need auth You need to authorize this machine using npm adduser

,

它现在正在运行,由于某种原因,我无法在项目目录上运行npm adduser或npm whoami,但是我可以在任何其他目录上运行,因此我认为项目中的某些配置文件存在问题。我删除了所有不是必需的文件,它都可以正常工作。

感谢您的帮助。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...