프로그래밍/JavaScript
npm을 pnpm 으로 바꾸면서 발생한 문제점 (--no-install Not Found)
seungdols
2023. 3. 23. 15:25
ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/--no-install: Not Found - 404
This error happened while installing a direct dependency of /Users/seungdols/Library/pnpm/store/v3/tmp/dlx-51986
--no-install is not in the npm registry, or you have no permission to fetch it.
No authorization header was set for the request.
npm에서 pnpm으로 교체하던 중에 git commit이 안되는 이슈가 있었는데, 좀 생소했다.
pnpm@6 버전을 쓰면 이슈가 없었고, pnpm@7버전을 쓰니까 이슈가 발생했다.
원인은 husky의 버전이 낮아서 발생하는 문제라고 한다.
pnpm dlx husky를 실행하는데, 버전 이슈로 위와 같은 오류가 발생한다고 한다.
https://github.com/pnpm/pnpm/issues/4790
--no-install is not in the npm registry · Issue #4790 · pnpm/pnpm
pnpm version: 7.0.0-rc.2 Code to reproduce the issue: commit git, there is a pnpm error,why??????The two are completely unrelated ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/--no-install: Not...
github.com
pnpm dlx husky install
pnpm@7 버전의 경우 husky의 버전이 8.x.x 버전으로 업데이트 해주어야 한다.
반응형