npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npm.js.org/npm npm ERR! 404 npm ERR! 404 'npm@*' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\86181\AppData\Local\npm-cache\_logs\2023-07-21T15_17_13_532Z-debug-0.log
65浏览 · 2023-08-13 07:07:57
这个错误通常是由于访问 npm 的 registry(仓库)时出现问题导致的。您可以尝试以下几种方法来[解决](https://geek.csdn.net/educolumn/03368addd5d267af1b4c6df01bb4af26?spm=1055.2569.3001.10083)这个问题:
1. 检查网络连接:确保您的网络连接正常,可以尝试使用其他网络或者重启路由器来[解决](https://geek.csdn.net/educolumn/03368addd5d267af1b4c6df01bb4af26?spm=1055.2569.3001.10083)可能的网络问题。
2. 清除 npm [缓存](https://geek.csdn.net/educolumn/2977ce9acb9e6d4b7df9ef4bea9461ad?spm=1055.2569.3001.10083):运行以下[命令](https://geek.csdn.net/educolumn/4641683097031caa4ae7258fda89dcae?spm=1055.2569.3001.10083)清除 npm 的[缓存](https://geek.csdn.net/educolumn/2977ce9acb9e6d4b7df9ef4bea9461ad?spm=1055.2569.3001.10083):
npm cache clean --force