0. VS Code 다운로드
- 환경에 맞춰 다운로드
Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
code.visualstudio.com
1. Node.js 설치 (최신 LTS 버전: 16.14.2 (includes npm 8.5.0))
다운로드 | Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
nodejs.org
# NPM (Node Package Modules) : Node.js에서 사용 가능한 모듈들을 패키지화 시켜 놓은 것.
2. VS Code 터미널 열고, 아래 명령어를 실행한다.
(터미널 여는 단축키 : Ctrl + Shift + ' , 상단에 Terminal 클릭하면 됨)
> npm install -g @vue/cli
3. 프로젝트 생성하기
> 프로젝트 생성할 위치로 이동 (cd ?)
> vue create 명령어로 프로젝트 생성 (vue create ? )
> cd .\project-name
> npm run serve
# 에러날 경우
vue : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\user\AppData\Roaming\npm\vue.ps1 파일을 로드
문제 VS 코드 터미널에서 Vue 프로젝트 생성안되는 경우, + CategoryInfo : 보안 오류: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAcces..
zeroco.tistory.com
4. 프로젝트 실행
> 해당 프로젝트 위치에서 npm run serve 명령어로 프로젝트 실행
> npm run serve
따라서, 위치 이동후 실행!
> cd firstvue
> npm run serve