카테고리 없음

[Node.js] exe 배포

전자기린 2022. 5. 12. 19:23

1. pkg 설치

- npm install -g pkg

 

2. 변환

- pkg [파일이름(app.js)]  -t node10-win-x64

         

2-1. 디지털 서명 문제가 발생한다면 변환파일과 동일한 경로에서 powershell을 아래와 같이 실행하고 2번을 다시 진행

- powershell.exe -executionpolicy unrestricted