{"id":111519,"date":"2021-10-27T23:17:00","date_gmt":"2021-10-27T14:17:00","guid":{"rendered":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/?p=111519"},"modified":"2022-05-26T22:13:59","modified_gmt":"2022-05-26T13:13:59","slug":"javascript-yarn","status":"publish","type":"post","link":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2021\/10\/javascript-yarn.html","title":{"rendered":"\u3010JavaScript\u306e\u5fdc\u7528\u3011\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc -Yarn"},"content":{"rendered":"<p>JavaScript\u3067\u306f\u3001yarn\u3068npm\u3092\u4f7f\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3084\u3084\u7570\u306a\u308b\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u958b\u767a\u306b\u306f\u3001\u500b\u4eba\u3084\u30c1\u30fc\u30e0\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5358\u4f4d\u3067\u7570\u306a\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3046\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u3069\u3061\u3089\u3082\u77e5\u3063\u3066\u304a\u3044\u3066\u640d\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u3001yarn\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2 class=\"style2c\">yarn<\/h2>\n<p>yarn\u3068\u306f\u3001Facebook\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u3059\u3002<br \/>\nnpm\u3068\u76f8\u4e92\u6027\u304c\u3042\u308b\u305f\u3081\u3001npm\u3068\u540c\u69d8\u306epackage.json\u3092\u4f7f\u7528\u3067\u304d\u308b\u306a\u3069\u3001npm\u3068yarn\u9593\u3067\u306e\u4e57\u308a\u63db\u3048\u3084\u4f75\u7528\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;<a href=\"https:\/\/yarnpkg.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Yarn<\/a><\/p>\n<p>npm\u304c2010\u5e74\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u306b\u6bd4\u3079\u3001yarn\u306f2016\u5e74\u30ea\u30ea\u30fc\u30b9\u3068\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u30c4\u30fc\u30eb\u3067\u3059\u3002<br \/>\n\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u3084\u64cd\u4f5c\u306fnpm\u3068\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001npm\u306b\u6bd4\u3079\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u9ad8\u901f\u306a\u70b9\u3084\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u56fa\u5b9a\u3057\u3084\u3059\u3044\u70b9\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u73fe\u5728\u3067\u306f\u3001npm\u3088\u308a\u306eyarn\u3092\u30e1\u30a4\u30f3\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3068\u3057\u3066\u5229\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h2 class=\"style2c\"><strong>yarn\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h2>\n<p><a href=\"https:\/\/classic.yarnpkg.com\/lang\/en\/docs\/install\/\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-content\/uploads\/2021\/10\/yarn-install.jpg\" alt=\"yarn install\" width=\"790\" height=\"440\" class=\"aligncenter size-full wp-image-112285 s_shot\" \/><\/a><br \/>\n\u3053\u3053\u3067\u306f\u3001npm\u3092\u4f7f\u3063\u3066\u30d1\u30bd\u30b3\u30f3\u306byarn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\nNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068npm\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002Node.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"cardlink\">\n    <a class=\"image\" href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2021\/10\/about-node-js.html\" aria-label=\"image\">\n     <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-content\/uploads\/2021\/10\/javascript-nodejs-300x300.jpg\" width=\"t\" height=\"t\" alt=\"\">\n    <\/a>\n    <div class=\"content\">\n     <div class=\"title_area\">\n      <div class=\"meta\">\n       <p class=\"date\">2021.10.07<\/p>\n       <p class=\"modified_date\">2022.05.26<\/p>\n      <\/div>\n      <div class=\"title\">\n       <a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2021\/10\/about-node-js.html\">\u3010JavaScript\u306e\u5fdc\u7528\u3011\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u4f7f\u7528\u3067\u304d\u308b\u300cnode.js\u300d\u3068\u306f\uff1f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3082\u89e3\u8aac<\/a>\n      <\/div>\n     <\/div>\n     <p class=\"desc\"><span>JavaScript\u3068\u8a00\u3048\u3070\u3001Web\u5236\u4f5c\u3084Web\u30a2\u30d7\u30ea\u306b\u5229\u7528\u3055\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u306e\u3053\u3068\u3067\u3001\u8868\u793a\u90e8\u5206\u3092\u5236\u5fa1\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8a00\u8a9e\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002\u6700\u8fd1\u3067\u306f\u3001JavaScript\u304c\u30b5\u30fc\u30d0\u30fc\u8a00\u8a9e\u3068\u3057\u3066\u3082\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u3002\r\n\r\n\u305d\u3053\u3067\u4eca\u56de\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5229\u7528\u3067\u304d\u308bJavaScript\u306e\u4e2d\u3067\u3082\u3001\u521d\u5fc3\u8005...<\/span><\/p>\n    <\/div>\n   <\/div>\n\n<p>&nbsp;<\/p>\n<p>yarn\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ npm install -g yarn<\/code><\/pre>\n<\/div>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ yarn -v\r\n1.22.4\r\n\/\/ \u51fa\u529b\u7d50\u679c\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u671f\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059<\/code><\/pre>\n<\/div>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\u304c\u3067\u304d\u308c\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u30ed\u30fc\u30ab\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u306e2\u3064\u306b\u5206\u985e\u3055\u308c\u307e\u3059\u3002<br \/>\n\u30ed\u30fc\u30ab\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u306f1\u3064\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5185\u306e\u307f\u3067\u5229\u7528\u3055\u308c\u308b\u306e\u306b\u5bfe\u3057\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5171\u6709\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u3067yarn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u969b\u306b\u3001<code>npm install -g \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code>\u3068\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3057\u305f\u304c\u3001-g\u306e\u90e8\u5206\u304c\u30b0\u30ed\u30fc\u30d0\u30eb\u3067\u3042\u308b\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001-g\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u30b0\u30ed\u30fc\u30d0\u30eb\u9818\u57df\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001-g\u3092\u4ed8\u3051\u306a\u3044\u3068\u30ed\u30fc\u30ab\u30eb\u9818\u57df\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306b\u3082\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5358\u4f4d\u3067\u3042\u308b\u304b\u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5171\u6709\u3057\u305f\u3044\u304b\u306b\u3088\u3063\u3066\u3001\u30ed\u30fc\u30ab\u30eb\u307e\u305f\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3053\u3068\u3092\u610f\u8b58\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"style2c\"><strong>package.json\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/strong><\/h2>\n<p>yarn\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001package.json\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306byarn-test\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ mkdir yarn-test\r\n$ cd yarn-test<\/code><\/pre>\n<\/div>\n<p>\u5c02\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u304c\u3067\u304d\u305f\u3089\u3001npm\u3068\u540c\u69d8\u306b<code>yarn init<\/code>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001package.json\u304c\u751f\u6210\u3055\u308c\u308b\u969b\u306e\u8cea\u554f\u6587\u306e\u78ba\u8a8d\u3092\u7701\u7565\u3059\u308b\u305f\u3081\u3001<code>yarn init -y<\/code>\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ yarn init -y\r\nyarn init v1.22.4\r\nwarning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.\r\nsuccess Saved package.json\r\n&#x2728; Done in 0.05s.<\/code><\/pre>\n<\/div>\n<p>package.json\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u304c\u3067\u304d\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ ls\r\npackage.json<\/code><\/pre>\n<\/div>\n<p>package.json\u306e\u4e2d\u8eab\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ cat package.json\r\n{\r\n  \"name\": \"yarn-test\",\r\n  \"version\": \"1.0.0\",\r\n  \"main\": \"index.js\",\r\n  \"license\": \"MIT\"\r\n}<\/code><\/pre>\n<\/div>\n<h2 class=\"style2c\"><strong>yarn\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h2>\n<p>\u3053\u308c\u3067\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002<br \/>\nyarn\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3046\u306b\u306f\u3001<code>yarn add \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>npm\u3068\u540c\u69d8\u306b\u3001\u8907\u6570\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ yarn add lodash react redux<\/code><\/pre>\n<\/div>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u7a2e\u985e\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u307b\u3093\u306e\u6570\u79d2\u3067\u4e0a\u8a18\u306e3\u3064\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ yarn add lodash react redux\r\nyarn add v1.22.4\r\n[1\/4] &#x1f50d; Resolving packages...\r\n[2\/4] &#x1f69a; Fetching packages...\r\n[3\/4] &#x1f517; Linking dependencies...\r\n[4\/4] &#x1f528; Building fresh packages...\r\nsuccess Saved lockfile.\r\n...\r\n&#x2728; Done in 2.35s.<\/code><\/pre>\n<\/div>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3088\u308a\u3001<code>node_nodules<\/code>\u3068<code>yarn.lock<\/code>\u304c\u4fdd\u5b58\u3055\u308c\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ ls\r\nnode_modules package.json yarn.lock<\/code><\/pre>\n<\/div>\n<p>yarn.lock\u306f\u3001npm\u3067\u8a00\u3046package-lock.json\u3068\u540c\u3058\u5f79\u5272\u3067\u3001\u5404\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u6b63\u78ba\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<br \/>\nnpm\u3068\u306f\u9055\u3063\u305f\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3001\u3088\u308a\u53b3\u5bc6\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002<br \/>\nnpm\u3067\u306f\u74b0\u5883\u306b\u3088\u3063\u3066\u30d0\u30b0\u304c\u8d77\u304d\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001yarn\u3067\u3042\u308c\u3070\u3069\u306e\u3088\u3046\u306a\u74b0\u5883\u4e0b\u3067\u3082\u5fc5\u305a\u540c\u3058\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u306a\u3069\u3001\u7ba1\u7406\u304c\u3057\u3084\u3059\u3044\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>package.json\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u201ddependencies\u201d\u306e\u4e2d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3001\u305d\u308c\u3089\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u7bc4\u56f2\u60c5\u5831\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ cat package.json\r\n{\r\n  ...\r\n  \"dependencies\": {\r\n    \"lodash\": \"^4.17.21\",\r\n    \"react\": \"^17.0.2\",\r\n    \"redux\": \"^4.1.1\"\r\n  }\r\n}<\/code><\/pre>\n<\/div>\n<p>\u3055\u3044\u3054\u306b\u3001yarn\u3067\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\nyarn\u306e\u5834\u5408\u306f\u3001<code>yarn global add \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u8a66\u3057\u306bparcel\u3068\u3044\u3046\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ yarn global add parcel-bundler\r\n...\r\n&#x2728; Done in 11.38s.<\/code><\/pre>\n<\/div>\n<h2 class=\"style2c\"><strong>\u77e5\u3063\u3066\u304a\u304f\u3068\u826f\u3044\u30b3\u30de\u30f3\u30c9<\/strong><\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u78ba\u8a8d\u306e\u4ed6\u306b\u3082\u77e5\u3063\u3066\u304a\u304f\u3068\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\uff1ayarn -v<\/li>\n<li>\u521d\u671f\u5316\uff1ayarn init<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1ayarn add \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u9818\u57df\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1ayarn global add \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/li>\n<li>\u958b\u767a\u74b0\u5883\u306e\u307f\u3067\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1ayarn add \u30d1\u30c3\u30b1\u30fc\u30b8\u540d &#8211;dev<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\uff1ayarn upgrade \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1ayarn remove \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/li>\n<li>\u30d8\u30eb\u30d7\u6a5f\u80fd\uff1ayarn help<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e00\u89a7\u5316\uff1ayarn ls<\/li>\n<\/ul>\n<h2 class=\"style2c\">\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001yarn\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>yarn\u306f\u3001npm\u3088\u308a\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u9ad8\u901f\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u56fa\u5b9a\u3057\u3084\u3059\u3044\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u5b9f\u969b\u306b\u306f\u5404\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u30c1\u30fc\u30e0\u3067\u306e\u958b\u767a\u72b6\u6cc1\u3001\u500b\u4eba\u306e\u4f7f\u3044\u3084\u3059\u3055\u306b\u3088\u3063\u3066\u3082\u7570\u306a\u308a\u307e\u3059\u3002<br \/>\nyarn\u306fnpm\u3068\u76f8\u4e92\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u307e\u305a\u306f\u4e21\u65b9\u8a66\u3057\u3066\u307f\u3066\u4f7f\u3044\u3084\u3059\u3044\u65b9\u304c\u63a1\u7528\u3059\u308b\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"style5\">\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306e\u95a2\u9023\u8a18\u4e8b<\/h2>\n<p>\u30fb<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2021\/10\/javascript-ecosystem.html\"><strong>JavaScript\u306e\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0<\/strong><\/a><br \/>\n\u30fb<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2021\/10\/javascript-npm.html\"><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc -Npm<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"JavaScript\u3067\u306f\u3001yarn\u3068npm\u3092\u4f7f\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3084\u3084\u7570\u306a\u308b\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002 \u30d7\u30ed\u30b0\u30e9\u30e0\u958b\u767a\u306b\u306f\u3001\u500b\u4eba\u3084\u30c1\u30fc\u30e0\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5358\u4f4d\u3067\u7570\u306a\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3046\u3053\u3068\u304c\u3042\u308b\u305f\u3081 [&hellip;]","protected":false},"author":1,"featured_media":112284,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1144],"tags":[964,1065,1071],"class_list":["post-111519","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript-application","tag-javascript","tag-node-js","tag-yarn"],"_links":{"self":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts\/111519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/comments?post=111519"}],"version-history":[{"count":0,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts\/111519\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/media\/112284"}],"wp:attachment":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/media?parent=111519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/categories?post=111519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/tags?post=111519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}