유니티 AIT sdk Publish 배포실패 문제

이 글의 성격은 무엇인가요?

정보 공유

내용을 설명해주세요

[Windows] AIT SDK 2.9.0 — 배포(Deploy) 메뉴가 ‘ait’ is not recognized로 실패 (deploy 명령 PATH에 node_modules.bin 누락)

■ 환경

  • Unity 6000.4.10f1 / Windows 11 / WebGL
  • Apps in Toss Unity SDK 2.9.0
  • 빌드/배포 모두 SDK 내장 pnpm(11.6.0) 사용

■ 증상

  • AIT 메뉴 "Build"는 성공(.ait 아티팩트·deploymentId 생성).
  • 이어지는 "Deploy"만 즉시 실패:
    [stderr] ‘ait’ is not recognized as an internal or external command, operable program or batch file.

■ 원인 (Editor.log 비교로 확인)
같은 SDK인데 build와 deploy의 PATH가 다름:

  • build : pnpm exec ait build → $env:PATH = ‘D:…\ait-build\node_modules.bin;…’ (.bin 포함 → ait 찾음 ✓)
  • deploy : pnpm exec ait deploy → $env:PATH = ‘…ait-unity-sdk\nodejs…;…’ (.bin 없음 → ait 못 찾음 ✗)
    AppsInTossMenu.ExecuteDeploy()가 ExecuteCommand에 additionalPaths = new{ npmDir } 만 넘겨
    node_modules.bin을 PATH에서 누락. 빌드 경로(AITNpmRunner.BuildAdditionalPaths)는 .bin을 넣어서 정상.

■ 임시 우회
터미널로 직접 배포