在 npm 注册表中找不到 react-router-dom

react-router-dom not found in npm registry

我尝试将 git 存储库中的 React 应用程序克隆到新机器中,但克隆后不久我尝试安装 npm 以处理依赖项,但每次它都显示错误

下面是我的 package.json 文件

我已经尝试用最新版本更新我的 package.json 文件 重新安装 npm 和节点

以下是我在 运行 npm install 命令进入该项目文件夹时收到的错误消息

Not found - GET https://registry.npmjs.org/react-router-dom/ -/react-router-dom-4.4.0.tgz

ERR!44 'react-router-dom@4.4.0' is no the npm registry

package.jsonreact-router-dom 的版本更改为 5.0.0 而不是 4.4.0

In the end, we decided that the fix that would cause the least pain for everyone would be to npm unpublish version 4.4.0 and re-release it as 5.0.0.

引用自 react-router-dom 的开发者。

由于一些问题,他们取消了该版本的发布。