"우분투 vue-cli 전역 설치"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
5번째 줄: 5번째 줄:


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# npm -v
root@zetawiki:~# npm -v
3.10.10
3.10.10
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# vue -V
root@zetawiki:~# vue -V
-bash: vue: command not found
-bash: vue: command not found
</source>
</syntaxhighlight>


==설치==
==설치==
<source lang='console'>
{{소스헤더|Vue 3 버전 이상 설치}}
<syntaxhighlight lang='console'>
root@zetawiki:~# npm install -g @vue/cli
</syntaxhighlight>
 
{{소스헤더|구버전 설치}}
<syntaxhighlight lang='console'>
root@zetawiki:~# npm install -g vue-cli
root@zetawiki:~# npm install -g vue-cli
... (생략)
... (생략)
23번째 줄: 29번째 줄:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/vue-cli/node_modules/chokidar/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/vue-cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
</source>
</syntaxhighlight>
 
Vue 3버전 이상 설치
<source lang='console'>
root@zetawiki:~# npm install -g @vue/cli
</source>


==확인 2==
==확인 2==
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# vue -V
root@zetawiki:~# vue -V
2.8.2
2.8.2
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:54 기준 최신판

우분투 vue-cli 전역 설치

1 사전작업[ | ]

2 확인[ | ]

root@zetawiki:~# npm -v
3.10.10
root@zetawiki:~# vue -V
-bash: vue: command not found

3 설치[ | ]

Vue 3 버전 이상 설치
root@zetawiki:~# npm install -g @vue/cli
구버전 설치
root@zetawiki:~# npm install -g vue-cli
... (생략)
  │ └── querystring@0.2.0 
  └── webpack-merge@2.6.1 

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/vue-cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

4 확인 2[ | ]

root@zetawiki:~# vue -V
2.8.2

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}