Installation 错误不能';“找不到包”@图标/材料@^0.2.4“;“所要求的”;反应颜色@^2.13.8“;关于;新产品管理“;登记处

Installation 错误不能';“找不到包”@图标/材料@^0.2.4“;“所要求的”;反应颜色@^2.13.8“;关于;新产品管理“;登记处,installation,yarnpkg,Installation,Yarnpkg,当我进行“纱线安装”时,会出现以下错误: 错误消息: yarn install v1.12.3 info No lockfile found. [1/4] Resolving packages... warning Resolution field "react@16.4.1" is incompatible with requested version "react@15" **error Couldn't find package "@icons/material@^0.2.4" requi

当我进行“纱线安装”时,会出现以下错误:

错误消息:

yarn install v1.12.3
info No lockfile found.
[1/4] Resolving packages...
warning Resolution field "react@16.4.1" is incompatible with requested version "react@15"
**error Couldn't find package "@icons/material@^0.2.4" required by "react-color@^2.13.8" on the "npm" registry.**
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

这样做解决了我的问题:
npm config set@icons:registry

检查根文件夹中是否有任何其他.npmrc或.yarnrc文件。当您进行安装时,它可能会覆盖项目的配置。当我从其他目录中删除这些文件时,这对我很有用。

问题是什么?当我进行“纱线安装”时,它会抛出以下错误:“错误无法找到“npm”注册表中“react color@^2.13.8”所需的包“@icons/material@^0.2.4”。”