首先是这个: npm ERR! network request to https://registry.nlark.com/ansi-styles/download/ansi-styles-5.2.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-5.2.0.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com
提示地址不对,我就把本机host这个ip指向一个可下载的地址(https://registry.npmmirror.com/)
然后重新执行install报错:
npm WARN tarball tarball data for diff-sequences@https://registry.nlark.com/diff-sequences/download/diff-sequences-25.2.6.tgz?cache=0&sync_timestamp=1624900057366&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdiff-sequences%2Fdownload%2Fdiff-sequences-25.2.6.tgz (sha1-X0Z8AO3TU1K3vKRteSfWDmh6dt0=) seems to be corrupted. Trying again.
npm WARN tarball tarball data for ansi-styles@https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz (sha1-7dgDYornHATIWuegkG7a00tkiTc=) seems to be corrupted. Trying again.
npm ERR! code EINTEGRITY
npm ERR! sha1-B0SWkK1Fd30ZJKwquy/IiV26g2s= integrity checksum failed when using sha1: wanted sha1-B0SWkK1Fd30ZJKwquy/IiV26g2s= but got sha1-LLvr7jT/Vteq2bj3pckN2iP5LW8=. (54 bytes)
npm ERR! A complete log of this run can be found in: /Users/davidlaw/.npm/_logs/2024-06-17T10_44_50_250Z-debug-0.log
日志也有没有看出可用信息,有人遇到过吗