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
Reference
이 문제에 관하여(Invalid: lock file's [email protected] does not satisfy bootstrap@^4.0.0의 해결 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/sugitaku03031/items/fa17bf156c9ffea52b9b텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)