Vue
-
vue.js 프로젝트 시작하기Vue 2024. 2. 1. 17:38
vue를 활용하여 프로젝트를 시작하고싶다면, npm 또는 yarn을 활용하여 js 기반의 문서, 프로그램들을 관리할 수 있다. 따라서 npm 을 활용하여 vue 또한 간편하게 관리할 수 있다는 뜻이다 1. 설치 vue 프로젝트를 생성하기 위해서 18.0 버전 이상의 node.js가 필요하다. npm을 설치한 후, node --version을 실행하여 버전을 확인해보자. npm create vue@latest 위 명령어를 실행하면, vue 프로젝트의 환경설정을 할 수 있다 다른 의존성을 추가하지 않고 프로젝트를 생성하면 다음과 같이 package.json을 준다. 사용하고싶은 모듈이 있다면, 여기에 추가하면 되고 없다면 그냥 npm install 해서 의존성들을 설치하자 2. vue 빌드하는 방법 pack..