[WebStorm] npm install error

2022. 7. 12. 17:30Front-end

반응형

WebStorm <npm install error>

<첫번째시도>
- terminal에 작성: 
npm install

- 에러내용:
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

: 깃배쉬로 작성
ssh-keygen -t rsa -C "내깃헙메일주소" 
그리고 내 깃헙들가서  setting에서 ssh key 에다가 작성함(.ssh/id_rsa 이 파일을 메모장으로 열어서 나온 내용을).
하지만 에러의 변화는 없음.
참조: https://maliceit.tistory.com/51 

 

git permission denied (publickey) : git 명령어 에러 해결방법

git permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists 문제 git clone, git pull 등 PC에서..

maliceit.tistory.com

 

 

ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ


<두번쨰시도>
- terminal에 작성: 
ssh-keyscan -t rsa github.com >> %userprofile%/.ssh/known_hosts
npm install

- 에러내용:
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com: errno=Unknown error
npm ERR!
npm ERR!
npm ERR! exited with error code: 128

: 에러는 났지만 에러내용이 바뀌었다! 뭔가 희망이 보인다!

 

ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ


<세번째시도>
- terminal에 작성:
git config --global url.https://github.com/.insteadOf git://github.com/
npm install

: 굿! 잘된다!!!!
참조: https://github.com/nodejs/help/issues/1461

 

npm install cannot download git repository · Issue #1461 · nodejs/help

Node.js Version: 6.10.2 and 9.9.0 we tested OS: Amazon Image, MacOS, Linux Ubuntu Scope (install, code, runtime, meta, other?): npm install Module (and version) (if relevant): npm install npm ERR! ...

github.com

반응형