npm publish包报404,is not in the npm registry错误 臻哥AI自习室 2022-11-22 379 阅读1分钟 平常我的代码都是推送到自己搭建的verdaccio私库的,今天写了一个组件推送到npm官方库时突然报npm publish包报404,is not in the npm registry错误。后面查了一下发现是因为我加了@作用域,npm官方规定,作用域只能是用户的用户名,而我用的是自己单独的一个命名。