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=="
},
と
package.json
"bootstrap": "^5.0.0-beta1",
を削除して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