ちょっと前に表題の現象が発生してたので、手元のメモを元に記事にしておく。
以下の記事の方が解説されている方法が正攻法だと思われるが、なんらか事情でうまくいかなかった記憶。(うろ覚え)
yarnコマンドで 404 Not Found に遭遇したときの対処法 - Qiita
そこで、Github の Issue のコメント欄 を参考に package-lock.json
の har-validator
の登録内容を自分で 5.1.3
のものに書き換えて npm install
する方法で対応した。
package-lock.json
"har-validator": {
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
"integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
"requires": {
"ajv": "^6.5.5",
"har-schema": "^2.0.0"
}
}