본문으로 바로가기

Additional logging details can be found in : /npm-debug.log

category JavaScript/React 2019. 11. 28. 14:31
반응형

https://ko.wikipedia.org

 


 

npm install을 입력했는데 오류가 발생하여 포스팅 하려고 합니다.

npm install -g create-react-app

 

에러 내용

npm http GET https://registry.npmjs.org/create-react-app
npm http GET https://registry.npmjs.org/create-react-app
npm http GET https://registry.npmjs.org/create-react-app
npm ERR! Error: CERT_UNTRUSTED
npm ERR!     at SecurePair.<anonymous> (tls.js:1430:32)
npm ERR!     at SecurePair.emit (events.js:92:17)
npm ERR!     at SecurePair.maybeInitFinished (tls.js:1029:10)
npm ERR!     at CleartextStream.read [as _read] (tls.js:521:13)
npm ERR!     at CleartextStream.Readable.read (_stream_readable.js:341:10)
npm ERR!     at EncryptedStream.write [as _write] (tls.js:418:25)
npm ERR!     at doWrite (_stream_writable.js:226:10)
npm ERR!     at writeOrBuffer (_stream_writable.js:216:5)
npm ERR!     at EncryptedStream.Writable.write (_stream_writable.js:183:11)
npm ERR!     at write (_stream_readable.js:602:24)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-696.20.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "create-react-app"
npm ERR! cwd /
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /npm-debug.log
npm ERR! not ok code 0

 

해결방법

npm config set registry http://registry.npmjs.org/

 

원인

구글링을 하여 확인한 결과 npm install 실행시에 Proxy 환경일 경우 제대로 설치가 안되는 경우가 있음.

위와 같은 해결방안 명령을 통해 Proxy 설정이 필요함.

 

※궁금하신 점은 댓글로 남겨주세요

※공감이 되셨다면 공감 버튼도 눌러주세요

반응형

'JavaScript > React' 카테고리의 다른 글

React Babel의 transform-class-properties 문법  (0) 2020.07.29
React 컴포넌트  (0) 2019.12.02
React 프로젝트 생성  (2) 2019.10.05
JSX 란  (0) 2019.10.05
JavaScript 라이브러리 React란 및 설치  (0) 2019.10.04