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
관리 메뉴

노우!쑤

[Vue]기본 프로젝트 구성 본문

개발

[Vue]기본 프로젝트 구성

no500 2022. 3. 29. 13:28

사전작업

  • Visual Studio 2019
  • Vue 프로젝트(javascript)

프로젝트 시작하자마자 빌드하면, 오류발생
'vue-cli-service'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.

 

npm 폴더 아래 패키지들이 잘 설치 되었는지 확인

 

아래 패키지 제거 후 최신 버전으로 다시설치

npm install vue@2.6.14
npm install vue-template-compiler@2.6.14 -D

 

Vuetify 세팅

npm install vuetify

vuetify.js 생성

// src/plugins/vuetify.js

import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'

Vue.use(Vuetify)

const opts = {}

export default new Vuetify(opts)

main.js  코드 추가

import vuetify from '@/plugins/vuetify'
new Vue({
    vuetify,
    ...
}).$mount('#app');

App.vue 테스트 코드 추가

<div id="app">
    <v-app>
        <v-main>
            <template>
                <v-row align="center"
                       justify="space-around">
                    <v-btn depressed>
                        Normal
                    </v-btn>
                    <v-btn depressed
                           color="primary">
                        Primary
                    </v-btn>
                    <v-btn depressed
                           color="error">
                        Error
                    </v-btn>
                    <v-btn depressed
                           disabled>
                        Disabled
                    </v-btn>
                </v-row>
            </template>
        </v-main>
    </v-app>
</div>

'개발' 카테고리의 다른 글

[VueJS] $emit vs $parent  (0) 2022.04.21
[.net core]GC(가비지 수집)가 작동하는 방식  (0) 2022.03.08
[용어]메시지큐  (0) 2021.06.25
[용어]클러스터링  (0) 2021.06.25
[SAML]  (0) 2021.03.12