Hollywis LLC

湘南にある小さなシステム会社

← 技術ブログ一覧に戻る

【エラー分析】Error: Command failed: npm uninstall caniuse-lite npm

Nuxt.js

ビルドしようとする際に、更新を促されてるので

エラーになり更新に失敗しました

エラー内容

Error: Command failed: npm uninstall caniuse-lite

npm ERR! code ERESOLVE

npm ERR! ERESOLVE could not resolve

npm ERR!

npm ERR! While resolving: @nuxtjs/firebase@8.2.0

npm ERR! Found: firebase@9.6.11

npm ERR! node_modules/firebase

npm ERR! firebase@"^9.6.11" from the root project

Browserslistの更新について

[[React] アプリのビルド時にBrowserslistの更新を要求されるので対処してみる | DevelopersIO](https://dev.classmethod.jp/articles/asked-to-update-the-browserslist-when-building-react-app/)

対処法

npm update

する。

実は簡単でした。

エラー文にFirebaseとか書かれているので、そっちをどうにかしないとダメなのかと悩みましたが

、迷ったらまずはパッケージをアップデートしてみましょう