node.js - 在“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'。你很可能在打错字。
推荐阅读
- c++ - 构造映射键时可变模板参数的反向顺序
- react-native - ReactNative 基于 AppContext 中实体的嵌套属性元素重新渲染页面
- spring-cloud-sleuth - Spring Cloud Sleuth Traces w/Gradle 未出现在 Zipkin 中
- android - Android 设置下的辅助功能未在三星 Galaxy 手机中打开
- javascript - JavaScript - 无法操纵 New Date() 来获取不同的日期值
- css - 使用 css ::after 在输入后创建水平破折号而不影响其他元素
- typescript - 打字稿类型检查基于第一选择的方法第二个参数
- python - 给定n个球和m个箱子,每个箱子有一定容量,有多少种组合?
- javascript - 更新 react-leaflet 中的 tileLayer url
- c# - 实体框架Core One to Many不使用集合,有可能吗?