npm publish 发包失败

npm发包失败,直接报错:

npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/react-native-use-toast - You do not have permission to publish "react-native-use-toast". Are you logged in as the correct user?
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.

大概率是他奶奶的,好名字都被 🐶 起了。

直接官网搜react-native-use-toast是不行的,没搜出来。

用这个npm view react-native-use-toast
如果有东西,就说明名字被占用了,如果报错404,就能用这个名字。

net.cctv3.i@StationChnqoo ~ % npm view react-native-use-toast

react-native-use-toast@1.0.1 | MIT | deps: none | versions: 3
useToast hook like Chakra UI in React Native
https://github.com/kbwo/react-native-use-toast#readme

keywords: react-native, react-native-component, react-native-toast, toast, toast-ios, alert, react-component, ios, android

dist
.tarball: https://registry.npmjs.org/react-native-use-toast/-/react-native-use-toast-1.0.1.tgz
.shasum: bf834a94f56ee20645d88afa6d8f4c42c92db01e
.integrity: sha512-woBnjwS2phQzXoaFLBHF7gAgDLohHwnBU2MmJXRHyutUA4D2gIehVc6PeGcSe8GjN37VwGQp3z+e1bnBSsmbdw==
.unpackedSize: 54.9 kB

maintainers:
- kodaikabasawa <kabaaa1126@gmail.com>

dist-tags:
latest: 1.0.1

published over a year ago by kodaikabasawa <kabaaa1126@gmail.com>
published over a year ago by kodaikabasawa <kabaaa1126@gmail.com>
net.cctv3.i@StationChnqoo ~ % npm view react-native-use-toaster
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/react-native-use-toaster - Not found
npm error 404
npm error 404 'react-native-use-toaster@*' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /Users/net.cctv3.i/.npm/_logs/2024-12-10T03_12_44_467Z-debug-0.log
作者

陈桥驿站

发布于

2024-12-10

更新于

2025-01-15

许可协议

评论