Cannot index into a null array
-
[PowerShell] Publish-Script 명령어로 배포시 Failed to generate the compressed file for script 'Cannot index into a null array.' 오류 현상Shell & CMD/PowerShell 2023. 3. 25. 23:23
파워셸로 스크립트를 배포하는 과정에서 Failed to generate the compressed file for script 'Cannot index into a null array.' 가 발생했다. 원인은 배포할 스크립트를 Publish-Script가 배포할 스크립트를 nupkg 형식으로 만드는 과정에서 나타나는 오류인데, 스크립트를 잘못 작성해서 문제가 된게 아니라 OS가 영어가 아닌 다른 언어일 경우 나타나는 환경적인 이슈이다. 관련 내용은 Github issue 에서 확인 가능하다. https://github.com/PowerShell/PowerShellGetv2/issues/606#issuecomment-686660440 Failed to generate the compressed file f..