Vite로 Unity WebGL 빌드 감싸기 단계에서 막히네요
-
Vite 프로젝트 생성
-
앱인토스 SDK 설치
-
Unity WebGL 빌드 결과물 복사
-
Unity 게임을 보여주는 컴포넌트 만들기
-
개발 서버 실행
위의 과정까지는 잘 진행된것 같습니다. http://localhost:5173 로 접속하면 브라우저에서 게임이 잘 돌아갑니다.
이후에 npx ait init 명령어를 치면
C:\Users\WCN-000096\unity-webgl-wrapper>npx ait init
npm error could not determine executable to run
npm error A complete log of this run can be found in: C:\Users\WCN-000096\AppData\Local\npm-cache_logs\2025-12-05T06_17_42_188Z-debug-0.log
이런 에러가 뜨네요
다음은 로그파일입니다.
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@10.9.2
2 info using node@v22.17.1
3 silly config load:file:C:\Program Files\nodejs\node_modules\npm\npmrc
4 silly config load:file:C:\Users\WCN-000096\unity-webgl-wrapper.npmrc
5 silly config load:file:C:\Users\WCN-000096.npmrc
6 silly config load:file:C:\Users\WCN-000096\AppData\Roaming\npm\etc\npmrc
7 verbose title npm exec ait init
8 verbose argv “exec” “–” “ait” “init”
9 verbose logfile logs-max:10 dir:C:\Users\WCN-000096\AppData\Local\npm-cache_logs\2025-12-05T06_17_42_188Z-
10 verbose logfile C:\Users\WCN-000096\AppData\Local\npm-cache_logs\2025-12-05T06_17_42_188Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
14 http fetch GET 200 https://registry.npmjs.org/ait 113ms (cache revalidated)
15 verbose stack Error: could not determine executable to run
15 verbose stack at getBinFromManifest (C:\Program Files\nodejs\node_modules\npm\node_modules\libnpmexec\lib\get-bin-from-manifest.js:17:23)
15 verbose stack at exec (C:\Program Files\nodejs\node_modules\npm\node_modules\libnpmexec\lib\index.js:202:15)
15 verbose stack at async Npm.exec (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:207:9)
15 verbose stack at async module.exports (C:\Program Files\nodejs\node_modules\npm\lib\cli\entry.js:74:5)
16 verbose pkgid ait@1.0.0
17 error could not determine executable to run
18 verbose cwd C:\Users\WCN-000096\unity-webgl-wrapper
19 verbose os Windows_NT 10.0.19045
20 verbose node v22.17.1
21 verbose npm v10.9.2
22 verbose exit 1
23 verbose code 1
24 error A complete log of this run can be found in: C:\Users\WCN-000096\AppData\Local\npm-cache_logs\2025-12-05T06_17_42_188Z-debug-0.log
혹시 같은 에러 해결하신분 있으신가요?