首页 > 解决方案 > 在“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 重新安装所有东西,但它们没有用。

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

标签: node.jsyarnpkgreact-scripts

解决方案


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


推荐阅读