ImFe's study

[PM2] Error: Illegal characters in path, no such file or directory 해결 (윈도우 환경) 본문

카테고리 없음

[PM2] Error: Illegal characters in path, no such file or directory 해결 (윈도우 환경)

ImFe 2024. 9. 24. 02:20

 Error: Illegal characters in path.
Error: ENOENT: no such file or directory, open 'c:\etc\.pm2" \m\module_conf.json'
Error: ENOENT: no such file or directory, open 'c:\etc\.pm2" \m\pm2.log'

 

 

윈도우 서버 환경에서 pm2 start 명령어 입력 후 발생한 문제.

 

.pm2 폴더의 위치를 pm2가 불러오지 못하는 상황이다.

setx PM2_HOME "[.pm2 폴더의 경로]"

PM2_HOME 환경변수를 .pm2 폴더가 존재하는 위치로 지정 해준다. (없으면 전역설치)
윈도우 명령어여서 source같은건 없고, 그냥 터미널을 껐다가 다시 켜주면 된다.

 

굿

Comments