Invalid: lock file's [email protected] does not satisfy bootstrap@^4.0.0의 해결 방법

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 [email protected] 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
+ [email protected]
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

좋은 웹페이지 즐겨찾기