gpt4 book ai didi

reactjs - npm WARN @typescript-eslint/eslint-plugin@1.6.0 需要 typescript@* 的对等点

转载 作者:行者123 更新时间:2023-12-03 13:28:24 26 4
gpt4 key购买 nike

我是 React 新手,从构建应用程序开始,我在安装依赖项时遇到了问题。我想包含诸如 material-ui/corematerial-ui/iconsreact-revealreact-scrollreact-slick

使用此命令安装时:

npm install @material-ui/core @material-ui/icons react-reveal react-scroll react-slick

它表明它们已经安装,当我开始编码时它没有编译它。

就在那时我想到了这个错误:

npm WARN @typescript-eslint/eslint-plugin@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.

npm WARN @typescript-eslint/parser@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.

npm WARN @typescript-eslint/typescript-estree@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.

npm WARN ts-pnp@1.1.2 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.

npm WARN tsutils@3.14.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev but none is installed. You must install peer dependencies yourself.

我错过了什么?

最佳答案

试试这个:

  1. 删除“package-lock.json”文件
  2. 在终端中,转到包含您的项目的文件夹并输入“npm install --save typescript”
  3. 然后输入“npm install”

这对我有帮助。

关于reactjs - npm WARN @typescript-eslint/eslint-plugin@1.6.0 需要 typescript@* 的对等点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56907286/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com