![](/img/trans.png)
[英]How Can I Resolve An 'npm Warn' When Using 'create-react-app'?
[英]npm WARN when creating files from create-react-app
npm WARN tsutils@3.17.1 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 || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
up to date in 7.486s
65 packages are looking for funding
run `npm fund` for details
fixed 0 of 1 vulnerability in 1649 scanned packages
1 vulnerability required manual review and could not be updated
pc react_crash_todo % npm audit fix
npm WARN tsutils@3.17.1 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 || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
up to date in 7.766s
65 packages are looking for funding
run `npm fund` for details
fixed 0 of 1 vulnerability in 1649 scanned packages
1 vulnerability required manual review and could not be updated
pc react_crash_todo %
我试图开始学习反应,但在使用 create-react-app 应用程序创建文件时出现此错误。 我也注意到由于 tsutils 和 typescript 未安装而发生错误我尝试使用以下命令安装相同
须藤 npm 安装 -g tsutils 须藤 npm 安装 -g typescript
它表明它也已安装
+ tsutils@3.17.1
added 2 packages from 2 contributors in 0.225s
+ typescript@3.9.7
added 1 package from 1 contributor in 3.226s
但我仍然收到警告,知道如何解决这个问题。
提前致谢!
这是一个node_modules
package 警告,您可以放心地忽略该警告。
npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0
意味着tsutils@3.17.1
不使用 typescript typescript@>=2.8.0
。 如果 tsutils 的tsutils
仍然可以正常运行没有任何问题,那也没关系。 要解决此问题,您应该更新tsutils
上的node_modules
而不是全局项目。 维护者会在某个时候做并让警告消失是可以的。 这是适当的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.