yargs-parser vulnerability requires manual review Fix Tip

jelly
2 min readJun 23, 2020

--

Vue.JS or React.JS 프로젝트에서 npm install 을 하면 yargs-parser vulnerability 메세지가 나타나는 경우가 있다.

보통 vulnerability 는 npm audit fix 명령어를 이용하면 해결이 가능한데, yargs-parser vulnerability 는 npm audit fix 로 해결 되지 않는다.

yargs-parser vulnerability 는 package.json 에 preinstall, resolution 을 추가 하여 해결이 가능하다.

  "scripts": {
...
"preinstall": "npx npm-force-resolutions",
...
},
"resolutions": {
"yargs-parser": "^18.1.3"
}

요롷게, yargs-parser vulnerability 을 처리해 보좌~~:)

--

--

jelly
jelly

Written by jelly

Test Eng? Test Devloper? Devloper?

No responses yet