• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

npm install 에러

22.07.31 15:22 작성 조회수 255

0

node 버전을 10으로 하면 괜찮다고 하시는 분이 계셔서 버전을 낮춰봤지만,
npm 설치시 최신 버전이 아니라서 실행이 되지 않았습니다.
현재 node 버전은 16입니다만, 실행을 할 경우 아래와 같은 에러가 발생하고
있습니다.
해결 방법이 있을까요?

npm ERR! code 1 npm ERR! git dep preparation failed npm ERR! command C:\Program Files\nodejs\node.exe C:\Users\Jerry\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\Jerry\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! npm ERR! code 1 npm ERR! npm ERR! The git reference could not be found npm ERR! npm ERR! command git --no-replace-objects checkout 4.0 npm ERR! npm ERR! error: pathspec '4.0' did not match any file(s) known to git npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! npm ERR! C:\Users\Jerry\AppData\Local\npm-cache\_logs\2022-07-31T05_33_24_641Z-debug-0.log npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Jerry\AppData\Local\npm-cache\_logs\2022-07-31T05_30_46_809Z-debug-0.log

답변 0

답변을 작성해보세요.

답변을 기다리고 있는 질문이에요.
첫번째 답변을 남겨보세요!