我正在尝试使用 npm 安装react-contenteditable。但是 eslint 的对等依赖项不允许我安装以下错误的 risal。
我正在使用 Ubuntu 18.04 LTS 操作系统。
这是我用来安装react-contenteditable 的代码。
npm i react-contenteditable
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of [email protected] /cdn-cgi/l/email-protection but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of eslint@>=1.6.0 <6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of [email protected] /cdn-cgi/l/email-protection - 5.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^3 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection 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.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] /cdn-cgi/l/email-protection (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] /cdn-cgi/l/email-protection: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] /cdn-cgi/l/email-protection (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] /cdn-cgi/l/email-protection: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] /cdn-cgi/l/email-protection (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] /cdn-cgi/l/email-protection: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ [email protected] /cdn-cgi/l/email-protection
updated 1 package and audited 901320 packages in 20.608s
found 12 high severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details
我什至尝试过npm audit fix
命令但是,它也对我没有帮助。
据我所知,它们是无害的。但如果你真的对它们感到非常恼火,失眠,或者让你的淋浴不干净????,你可以尝试这些:
安装 typescript 和 eslint:
npm install typescript
npm install eslint
这是为了平息这些警告
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of [email protected] /cdn-cgi/l/email-protection but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of eslint@>=1.6.0 <6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of [email protected] /cdn-cgi/l/email-protection - 5.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^3 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] /cdn-cgi/l/email-protection 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.
npm 强制安装如果没有任何问题,我建议您不要经常这样做。但这可能是一个很好的案例。
npm install -f
该命令是为了安抚这些警告:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] /cdn-cgi/l/email-protection (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] /cdn-cgi/l/email-protection: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] /cdn-cgi/l/email-protection (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] /cdn-cgi/l/email-protection: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] /cdn-cgi/l/email-protection (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] /cdn-cgi/l/email-protection: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Again 它们是无害的你可以尝试和他们一起生活。或者你可以尝试上面的命令来让生活得到一些小小的缓解????
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)