[VScode] code . 에러해결

2021. 12. 28. 16:40·Archive
반응형

 

 

터미널에서 code . 를 입력하면  VScode가 안열리고 에러발생할 때

 

 

1. PATH가 정상적으로 설정되지 않으면 아래와 같은 에러 발생

$ code
zsh: command not found: code

 

1-1.  VScode를 실행하고 Command + Shift + P를 입력해서 커맨드 팔레트를 연다.

   'Shell Command : Install 'code' command in PATH' 실행해서 추가한다.

 

1-2.   터미널에서 code -v를 실행해서 버전이 출력되면 해결

 

 


 

2.   1-1에서 permission error가 발생하면

 

 

 

터미널에서 bin 디렉토리에 접근하여 PATH code를 지우고 다시 install 한다.

cd /usr/local/bin
sudo rm -rf code

VScode를 켜서 1-1을 다시해본다.

 

 

 

반응형
저작자표시 비영리 변경금지 (새창열림)

'Archive' 카테고리의 다른 글

[TS] Type Aliases / Literal Type  (1) 2021.12.30
[JS] 객체지향 2 ( Create, Class )  (1) 2021.12.28
[JS] 객체지향 (Constructor, Prototype)  (0) 2021.12.28
[GIT] Git flow / Rebase / Upstream  (0) 2021.12.17
[TIL] Plug-in?  (0) 2021.12.07
'Archive' 카테고리의 다른 글
  • [TS] Type Aliases / Literal Type
  • [JS] 객체지향 2 ( Create, Class )
  • [JS] 객체지향 (Constructor, Prototype)
  • [GIT] Git flow / Rebase / Upstream
manon_e
manon_e
  • manon_e
    개발 블로그
    manon_e
  • 전체
    오늘
    어제
    • 💻 (102)
      • Frontend (10)
        • React | Next.js (6)
        • Memo (4)
      • CS (2)
        • 네트워크 (0)
        • 자료구조 + 알고리즘 (0)
        • 컴퓨터 구조 + 운영체제 (2)
      • Cloud & Infra (0)
      • Project (4)
      • Archive (86)
  • 인기 글

  • 태그

    Node
    비동기
    오블완
    getstaticprops
    pre-rendering
    git
    vscode
    JavaScript
    useEffect
    REACT
    typeScript
    Prisma
    node.js
    axios
    정규표현식
    State
    티스토리챌린지
    Next.js
    Component
    ES6
  • hELLO· Designed By정상우.v4.10.3
manon_e
[VScode] code . 에러해결
상단으로

티스토리툴바