在“npm”注册表中找不到“main@0.1.0”所需的包“react-scrips@4.0.1”

问题描述

我无法安装任何软件包

yarn install v1.22.5
[1/4] Resolving packages...
error Couldn't find package "react-scrips@4.0.1" required by "main@0.1.0" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

我尝试过 npm config delete registry删除 node_modules 并使用 yarn 重新安装所有内容,但它们没有用。

此外,我的编辑器显示了其他软件包的可用版本列表,但没有“反应脚本”

解决方法

我认为它的 react-scripts 不是 'scrips'。你很可能打错了。