본문 바로가기
문제해결

npm install 안 될 때 해결법

by limew 2024. 8. 21.

npm install 설치가 계속 안 되었다

 

 

 

진단하기 위해 

npm install --verbose

 

 

FetchError: request to https://registry.npmjs.org/-/npm/v1/security/audits/quick failed, reason: self-signed certificate in certificate chain
npm verbose audit error     at ClientRequest.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm verbose audit error     at ClientRequest.emit (node:events:519:28)
npm verbose audit error     at _destroy (node:_http_client:880:13)
npm verbose audit error     at onSocketNT (node:_http_client:900:5)
npm verbose audit error     at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm verbose audit error   code: 'SELF_SIGNED_CERT_IN_CHAIN',
npm verbose audit error   errno: 'SELF_SIGNED_CERT_IN_CHAIN',
npm verbose audit error   type: 'system'
npm verbose audit error }

 

 

 

 

해결법

npm config set strict-ssl false

 

 

 

이후에 잘 설치가 됐다