首页 > 技术文章 > npm publish 一直报错 404

winyh 2019-11-23 19:51 原文

 在封装 zswui  react ui 组件库的时候,尝试了下 github的 packages 包设置,然后就给自己挖坑了。

zswui   这是一个从零开始配置,实现组件开发测试的项目。

因为设置了 gihub 的 packages 配置,去掉就好

"publishConfig": {
  "registry": "https://npm.pkg.github.com/"
},

 

报错信息如下

ERR! code E404
npm ERR! 404 Not Found - PUT https://npm.pkg.github.com/zswui
npm ERR! 404 
npm ERR! 404  'zswui@0.0.41' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url

  

 

推荐阅读