0
2

More than 3 years have passed since last update.

npm install で har-validator-5.1.2.tgz が Not Found と言われた

Posted at

ちょっと前に表題の現象が発生してたので、手元のメモを元に記事にしておく。

以下の記事の方が解説されている方法が正攻法だと思われるが、なんらか事情でうまくいかなかった記憶。(うろ覚え)

yarnコマンドで 404 Not Found に遭遇したときの対処法 - Qiita

そこで、Github の Issue のコメント欄 を参考に package-lock.jsonhar-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"
     }
   }
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2