• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

npm install 오류

19.07.15 17:33 작성 조회수 127

0

맥 os 및 윈도우 두환경에서 진행하고있는데 둘다안되서 문의드립니다.

 

npm install을 할시 아래와같은 오류가 뜨는데어떻게해야하는지 궁금해서 질문드립니다.

-----------------------------------------

 ~/klaytn/addition-game-starter  npm install

npm ERR! path /Users/jsy/klaytn/addition-game-starter/node_modules/caver-js/node_modules/websocket

npm ERR! code EISGIT

npm ERR! git /Users/jsy/klaytn/addition-game-starter/node_modules/caver-js/node_modules/websocket: Appears to be a git repo or submodule.

npm ERR! git     /Users/jsy/klaytn/addition-game-starter/node_modules/caver-js/node_modules/websocket

npm ERR! git Refusing to remove it. Update manually,

npm ERR! git or move it out of the way first.

 

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/jsy/.npm/_logs/2019-07-15T08_30_25_090Z-debug.log

 

-------------------------------------------

 

npm 은 6.9

node js는 12.6

truffle 은 4.1.15 사용중입니다.

 

 

답변 2

·

답변을 작성해보세요.

0

이우진님의 프로필

이우진

2019.07.21

git config --global url."https://github.com/".insteadOf git@github.com:

git config --global url."https://".insteadOf git://

도스창에서 치시고 다시 해보세요.

출처: https://gist.github.com/taoyuan/bfa3ff87e4b5611b5cbe

0

이거 실행해보시고 재설치해보세요 

rm -rf node_modules/*/.git/