Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

blog

[npm serve] WARNING: Checking for updates failed (use `--debug` to see full error). 본문

Web/ERROR

[npm serve] WARNING: Checking for updates failed (use `--debug` to see full error).

hjkongkong 2022. 9. 14. 21:35

serve update 이후 오류

기존에 serve를 이용하고 있었는데, 업데이트 이후 버전을 확인할 때 워닝이 함께 출력됐다.

$ sudo npm update -g serve
$ serve --version
WARNING: Checking for updates failed (use `--debug` to see full error).
14.0.1
$ serve --debug
WARNING: Checking for updates failed:
ERROR: EACCES: permission denied, open '/tmp/update-check/serve-latest.json'

ls -al로 해당 파일을 봤더니

-rw-r--r--.  1 root root    46  7월 25 22:00 serve-latest.json
$ sudo chmod 777 /tmp/update-check/serve-latest.json


해당 파일의 권한을 777로 바꿨다.

$ serve --version
14.0.1

해결 완료^.^