{"id":1600,"date":"2022-03-08T20:27:32","date_gmt":"2022-03-08T11:27:32","guid":{"rendered":"http:\/\/ji-develop.com\/blog\/?p=1600"},"modified":"2022-05-05T09:04:00","modified_gmt":"2022-05-05T00:04:00","slug":"mac%e3%81%a7vue2vue-clivuetify%e3%81%ae%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/ji-develop.com\/blog\/mac%e3%81%a7vue2vue-clivuetify%e3%81%ae%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%82%8b","title":{"rendered":"Mac\u3067Vue2+Vue CLI+Vuetify\u306e\u74b0\u5883\u3092\u4f5c\u308b"},"content":{"rendered":"<p>Vue CLI\u3092\u4f7f\u3063\u3066\u3001Vue\u3068Vuetify\u306e\u74b0\u5883\u306e\u4f5c\u308a\u65b9\u3067\u3059\u3002<\/p>\n<p>Vue\u306fVue2\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u3067\u306fVue3\u3068\u3044\u3046Vue2\u306e\u5f8c\u7d99\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u51fa\u3066\u3044\u307e\u3059\u304c\u3001Vuetify\u304cVue3\u306b\u307e\u3060\u672a\u5bfe\u5fdc\u306a\u305f\u3081Vue2\u3067\u74b0\u5883\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<div class=\"c_box intitle blue_box type_normal\"><div class=\"box_title\"><span class=\"span__box_title\">\u958b\u767a\u74b0\u5883<\/span><\/div>\n<p>MacOS\uff1aCatalina 10.15.7\uff08\u3061\u3087\u3063\u3068\u53e4\u3044\uff09<\/p>\n<p>node.js\uff1av14.18.1<\/p>\n<p>npm\uff1a6.14.15<\/p>\n<\/div>\n<p><span style=\"color: #ff0000;\">\u203b\u57f7\u7b46\u6642\u70b9\u3067node.js\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306fv17.6.0\u3067\u3059\u304c\u3001\u5b9f\u884c\u6642\uff08npm run serve\uff09\u306b<\/span><span style=\"color: #ff0000;\">\u300c0308010C:digital envelope routines::unsupported\u300d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u306e\u3067\u3001\u610f\u56f3\u7684\u306bv14.18.1\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/span><\/p>\n\n<h2>Vue CLI\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><code>$ npm install -g @vue\/cli<\/code><\/p>\n<p>\u6700\u65b0\u7248\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\uff08\u73fe\u6642\u70b9\u3067\u306f5.0.1\u3067\u3059\uff09<\/p>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5834\u6240\u307e\u3067\u79fb\u52d5\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\uff08test-app\u306f\u4efb\u610f\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u6307\u5b9a\uff09<\/p>\n<p><code>$ vue create test-app<\/code><\/p>\n<p>\u4ee5\u4e0b\u306e\u9078\u629e\u80a2\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u4eca\u56de\u306fVue2\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1619\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/1.png\" alt=\"Vue\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u9078\u629e\" width=\"600\" height=\"125\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/1.png 600w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/1-300x63.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u3057\u3070\u3089\u304f\u5f85\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u753b\u9762\u304c\u51fa\u308c\u3070\u4f5c\u6210\u5b8c\u4e86\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1624\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/2.png\" alt=\"Vue\u4f5c\u6210\u5b8c\u4e86\" width=\"600\" height=\"123\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/2.png 600w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/2-300x62.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u753b\u9762\u306b\u3042\u308b\u901a\u308acd\u3067\u79fb\u52d5\u3057\u305f\u5f8c<code>$ npm run serve<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1625\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/3.png\" alt=\"\u5b9f\u884c\u5b8c\u4e86\" width=\"600\" height=\"143\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/3.png 600w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/3-300x72.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\n\u4e0a\u8a18\u306e\u753b\u9762\u304c\u51fa\u305f\u3089\u3001<a href=\"http:\/\/localhost:8080\/\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost:8080\/<\/a>\u3067\u30d6\u30e9\u30a6\u30b6\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\uff08192.168.11.8\u306f\u50d5\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u306a\u306e\u3067\u7686\u3055\u3093\u306f\u9055\u3046\u30a2\u30c9\u30ec\u30b9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\uff09<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1635\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/4.png\" alt=\"Welcome to Vue\" width=\"600\" height=\"340\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/4.png 600w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/4-300x170.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306bVue\u306eWelcome\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<h2>Vuetify\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5834\u6240\u307e\u3067\u79fb\u52d5\u3057\u3066\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><code>$ vue add vuetify<\/code><\/p>\n<p>\u4e0b\u8a18\u306e\u9078\u629e\u80a2\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001Default\u3092\u9078\u629e\u3057\u307e\u3059\u3002<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1626\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/5.png\" alt=\"Vuetify\u9078\u629e\" width=\"600\" height=\"165\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/5.png 600w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/5-300x83.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u3057\u3070\u3089\u304f\u5f85\u3063\u3066\u4ee5\u4e0b\u306e\u753b\u9762\u304c\u51fa\u308c\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3002<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1627\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/6.png\" alt=\"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\" width=\"600\" height=\"115\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/6.png 600w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/6-300x58.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u518d\u5ea6\u3001<code>$ npm run serve<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001<a href=\"http:\/\/localhost:8080\/\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost:8080\/<\/a>\u3067\u30d6\u30e9\u30a6\u30b6\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1628\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/7.png\" alt=\"Welcome to Vuetify\" width=\"690\" height=\"400\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/7.png 690w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/7-300x174.png 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306bVuetify\u306eWelcome\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<h2>vue-router\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3068\u3053\u308d\u3067\u3053\u306e\u3084\u308a\u65b9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3059\u308b\u3068\u3001SPA\u3092\u4f5c\u308b\u305f\u3081\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u74b0\u5883\u304c\u307e\u3060\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u203bSPA\u74b0\u5883\u3092\u4f5c\u6210\u3057\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3053\u3053\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<p>\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5834\u6240\u307e\u3067\u79fb\u52d5\u3057\u3066\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n<code>$ npm install vue-router@3<\/code><\/p>\n<p>@3\u3067\u30d0\u30fc\u30b8\u30e7\u30f33\u3092\u6307\u5b9a\u3059\u308b\u3068\u3053\u308d\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<br \/>\n\u3053\u306e\u8a18\u4e8b\u57f7\u7b46\u6642\u70b9\u3067\u306fVue3\u306b\u5bfe\u5fdc\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f34\u304c\u51fa\u3066\u3044\u307e\u3059\u304c\u3001@\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u6307\u5b9a\u3092\u305b\u305a\u6700\u65b0\u306evue-router\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082Vue2\u74b0\u5883\u3067\u306f\u52d5\u304b\u306a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3044\u304f\u3064\u304b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h3>main.js\u306e\u4fee\u6b63<\/h3>\n<p>src\u76f4\u4e0b\u306b\u3042\u308bmain.js\u306b\u4ee5\u4e0b\u8d64\u67a0\u306e\u7b87\u6240\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1658\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/8.png\" alt=\"main.js\u306e\u4fee\u6b63\" width=\"600\" height=\"400\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/8.png 600w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/8-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/>\n<h3>route.js\u306e\u8ffd\u52a0<\/h3>\n<p>src\u76f4\u4e0b\u306brouter.js\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1659\" src=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/9.png\" alt=\"router.js\u306e\u8ffd\u52a0\" width=\"600\" height=\"391\" srcset=\"https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/9.png 600w, https:\/\/ji-develop.com\/blog\/wp-content\/uploads\/2022\/03\/9-300x196.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/>\n<h3>App.vue\u306e\u4fee\u6b63<\/h3>\n<p>\u4fee\u6b63\u3068\u3044\u3046\u304b\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u3092\u3057\u305f\u74b0\u5883\u3067\u8a2d\u5b9a\u3057\u305f\u30eb\u30fc\u30c8\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001App.vue\u3067<code>&lt;router-view \/&gt;<\/code>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u74b0\u5883\u306e\u4f5c\u6210\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2>\u304a\u307e\u3051<\/h2>\n<p>\u3059\u3050\u5fd8\u308c\u308b\u306e\u3067\u5099\u5fd8\u9332<\/p>\n<ul>\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bnode.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\uff1a<code>$\u00a0nodebrew ls<\/code><\/li>\n<li>node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u5909\u66f4\uff1a<code>$ nodebrew use \uff08\u5207\u66ff\u3048\u305f\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\uff09<\/code><\/li>\n<li>npm\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\uff1a<code>$ npm -v<\/code><\/li>\n<li>Vue CLI\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\uff1a<code>$ vue --version<\/code><\/li>\n<li>Vue\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\uff1a<code>$ npm list -g vue<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Vue CLI\u3092\u4f7f\u3063\u3066\u3001Vue\u3068Vuetify\u306e\u74b0\u5883\u306e\u4f5c\u308a\u65b9\u3067\u3059\u3002 Vue\u306fVue2\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u3067\u306fVue3\u3068\u3044\u3046Vue2\u306e\u5f8c\u7d99\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u51fa\u3066\u3044\u307e\u3059\u304c\u3001Vuetify\u304cVue3\u306b\u307e\u3060\u672a\u5bfe\u5fdc\u306a\u305f\u3081&#8230;<\/p>\n","protected":false},"author":1,"featured_media":426,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[24,8],"tags":[],"class_list":{"0":"post-1600","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-vue","8":"category-8","9":"article cf"},"_links":{"self":[{"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/posts\/1600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/comments?post=1600"}],"version-history":[{"count":32,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/posts\/1600\/revisions"}],"predecessor-version":[{"id":1657,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/posts\/1600\/revisions\/1657"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/media\/426"}],"wp:attachment":[{"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/media?parent=1600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/categories?post=1600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/tags?post=1600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}