LoginSignup
0
1

More than 3 years have passed since last update.

Invalid: lock file's bootstrap@5.0.0-beta1 does not satisfy bootstrap@^4.0.0の解決法

Posted at

npm installを試したら...。

コンソール
% npm install  
npm WARN The package bootstrap is included as both a dev and production dependency.

removed 1 package, updated 2 packages and audited 1098 packages in 5.338s

51 packages are looking for funding
  run `npm fund` for details

found 1 high severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details 

ほう...ならばnpm audit fixを試してみる

コンソール

npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix them.
npm ERR!     Invalid: lock file's bootstrap@5.0.0-beta1 does not satisfy bootstrap@^4.0.0

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sugitaku03031/.npm/_logs/2021-02-18T16_01_48_905Z-debug.log

原因はbootstrapのベータ版にあるみたいですな

以下の部分を削除↓

package-lock.json

"bootstrap": {
            "version": "5.0.0-beta1",
            "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.0.0-beta1.tgz",
            "integrity": "sha512-UrHApw/WRmT7l2rlDdn5iXr7Jps/LlMZtJlLn9G41aGDfss48hyDeYyHtX1C6NHKVcmdUarGG+ve0LZB5iHyTQ=="
        },

スクリーンショット 2021-02-19 1.17.52.png

package.json

"bootstrap": "^5.0.0-beta1",

スクリーンショット 2021-02-19 1.16.36.png

を削除してnpm installを実行!

package-lock.json

        "bootstrap": {
            "version": "4.6.0",
            "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.0.tgz",
            "integrity": "sha512-Io55IuQY3kydzHtbGvQya3H+KorS/M9rSNyfCGCg9WZ4pyT/lCxIlpJgG1GXW/PswzC84Tr2fBYi+7+jFVQQBw==",
            "dev": true
        },

!?なんか追加されたぞ!
続いて一応npm audit fixも実行

コンソール
% npm audit fix
+ axios@0.21.1
added 1 package from 3 contributors and updated 1 package in 4.526s

52 packages are looking for funding
  run `npm fund` for details

fixed 1 of 1 vulnerability in 1098 scanned packages

治った...。

Laravel Framework 8.28.1

0
1
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
1