在封裝 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
