Npmを使用してreact-contenteditableをインストールしようとしていますが、eslintのピア依存関係により、次のエラーの発生によりインストールできません。 Ubuntu 18.04 LTS OSを使用しています。
これは、react-contenteditableのインストールに使用したコードです。
npm i react-contenteditable
npm WARN @TypeScript-eslint/[email protected] requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @TypeScript-eslint/[email protected] requires a peer of TypeScript@* but none is installed. You must install peer dependencies yourself.
npm WARN @TypeScript-eslint/[email protected] requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @TypeScript-eslint/[email protected] requires a peer of TypeScript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] 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] requires a peer of [email protected] - 5.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^3 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] 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] 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] requires a peer of TypeScript@* but none is installed. You must install peer dependencies yourself.
npm WARN @TypeScript-eslint/[email protected] requires a peer of TypeScript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of TypeScript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] 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] (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","Arch":"any"} (current: {"os":"linux","Arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","Arch":"any"} (current: {"os":"linux","Arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","Arch":"any"} (current: {"os":"linux","Arch":"x64"})
+ [email protected]
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-update-all グローバルツールを使用して、すべてのパッケージを最新の状態にしました。 TypeScriptが3.6.4に更新され、すべてのピア警告がなくなりました。もちろん、すべてを慎重に更新するなどの抜本的な手段を使いたいと考えています。
マイク