{"id":1483,"date":"2023-03-27T20:13:33","date_gmt":"2023-03-27T11:13:33","guid":{"rendered":"http:\/\/attacktube.com\/?p=1483"},"modified":"2023-03-30T11:16:34","modified_gmt":"2023-03-30T02:16:34","slug":"node-js%e5%85%a5%e9%96%80%e5%8b%89%e5%bc%b7-%e3%81%9d%e3%81%ae2-gulp%e3%82%ac%e3%83%ab%e3%83%97%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%9d%e3%81%ae2","status":"publish","type":"post","link":"https:\/\/attacktube.com\/?p=1483","title":{"rendered":"\u3010Node.js\u3011gulp(\u30ac\u30eb\u30d7)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(\u305d\u306e2)"},"content":{"rendered":"\n<p>npm(Node Package Manager)<br>gulp(\u30ac\u30eb\u30d7)<br>\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(global install)<br><br>\u4e0a\u8a18\u306e\u7528\u8a9e\u3092\u4f7f\u3063\u3066Node.js\u306b\u3064\u3044\u3066\u6587\u7ae0\u3092\u66f8\u3044\u3066\u3044\u304f\u3002<br>gulp(\u30ac\u30eb\u30d7)\u306fNode.js\u306e\u30d1\u30c3\u30b1\u30fc\u30b8(package)\u306e1\u3064\u3067\u3042\u308b\u3002<br><br>gulp(\u30ac\u30eb\u30d7)\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3059\u308b\u3002<br>\u300cnpm i -g gulp\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(global install)\u3059\u308b\u3002<br>\u300cC:\\Users\\&lt;\u30e6\u30fc\u30b6\u30fc\u540d&gt;\\AppData\\Roaming\\npm\u300d\u306bgulp\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3002<br>\u30b0\u30ed\u30fc\u30d0\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u300cgulp -v\u300d\u304c\u8a8d\u8b58\u3055\u308c\u308b\u3002<br>\u3057\u304b\u3057\u3001\u300cLocal version: Unknown\u300d\u3068\u306a\u308b\u3051\u3069\u3001version\u5206\u304b\u3089\u306a\u3044\u3084\u3093\u3002<br>\u306a\u3093\u3067Unknown\u306a\u3093\u3060\u308d\u3046\u304b\uff1f\u3053\u306e\u8fba\u306f\u4e0d\u660e\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<pre><code>\n## \u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nsudo npm install --global &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\nsudo npm i -g &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\nyarn global add &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\n\n<\/code><\/pre>\n\n\n\n<pre><code>\nC:\\Projects4\\sample&gt;npm init\nThis utility will walk you through creating a package.json file.\nIt only covers the most common items, and tries to guess sensible defaults.\n\nSee `npm help init` for definitive documentation on these fields\nand exactly what they do.\n\nUse `npm install &lt;pkg&gt;` afterwards to install a package and\nsave it as a dependency in the package.json file.\n\nPress ^C at any time to quit.\npackage name: (sample)\nversion: (1.0.0)\ndescription:\nentry point: (index.js)\ntest command:\ngit repository:\nkeywords:\nauthor:\nlicense: (ISC)\nAbout to write to C:\\Projects4\\sample\\package.json:\n\n{\n  \"name\": \"sample\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" &amp;&amp; exit 1\"\n  },\n  \"author\": \"\",\n  \"license\": \"ISC\"\n}\n\n\nIs this OK? (yes)\nC:\\Projects4\\sample&gt;\nC:\\Projects4\\sample&gt;sudo npm i -g  gulp\n'sudo' \u306f\u3001\u5185\u90e8\u30b3\u30de\u30f3\u30c9\u307e\u305f\u306f\u5916\u90e8\u30b3\u30de\u30f3\u30c9\u3001\n\u64cd\u4f5c\u53ef\u80fd\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u307e\u305f\u306f\u30d0\u30c3\u30c1 \u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\n\nC:\\Projects4\\sample&gt;npm i -g  gulp\nnpm WARN deprecated source-map-url@0.4.1: See https:\/\/github.com\/lydell\/source-map-url#deprecated\nnpm WARN deprecated urix@0.1.0: Please see https:\/\/github.com\/lydell\/urix#deprecated\nnpm WARN deprecated source-map-resolve@0.5.3: See https:\/\/github.com\/lydell\/source-map-resolve#deprecated\nnpm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies\nnpm WARN deprecated resolve-url@0.2.1: https:\/\/github.com\/lydell\/resolve-url#deprecated\n\nadded 350 packages, and audited 351 packages in 47s\n\n12 packages are looking for funding\n  run `npm fund` for details\n\n5 high severity vulnerabilities\n\nTo address all issues (including breaking changes), run:\n  npm audit fix --force\n\nRun `npm audit` for details.\n\nC:\\Projects4\\sample&gt;gulp -v\nCLI version: 2.3.0\nLocal version: Unknown\n<\/code><\/pre>\n\n\n\n<br>\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-3461056110605997\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3461056110605997\" data-ad-slot=\"3137443461\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n<br>\n\n\n\n<p>\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u300cgulp -v\u300d\u304c\u8a8d\u8b58\u3055\u308c\u306a\u304f\u306a\u308b\u3002<br>\u300cC:\\Users\\&lt;\u30e6\u30fc\u30b6\u30fc\u540d&gt;\\AppData\\Roaming\\npm\u300d\u304b\u3089gulp\u30d5\u30a1\u30a4\u30eb\u304c\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u6d88\u3048\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre><code>\nC:\\Projects4\\sample&gt;npm uninstall gulp -g\n\nremoved 350 packages, and audited 1 package in 3s\n\nfound 0 vulnerabilities\n\nC:\\Projects4\\sample&gt;gulp -v\n'gulp' \u306f\u3001\u5185\u90e8\u30b3\u30de\u30f3\u30c9\u307e\u305f\u306f\u5916\u90e8\u30b3\u30de\u30f3\u30c9\u3001\n\u64cd\u4f5c\u53ef\u80fd\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u307e\u305f\u306f\u30d0\u30c3\u30c1 \u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\n\nC:\\Projects4\\sample&gt;\n\n<\/code><\/pre>\n\n\n\n<script type=\"text\/javascript\">\njQuery(function($){\n$(\".jp-video\").hide();\n});\n<\/script>\n\n\n\n<p>\u524d\u306e\u8a18\u4e8b<br><a href=\"http:\/\/attacktube.com\/?p=1457\">Node.js\u5165\u9580(\u52c9\u5f37 \u305d\u306e1) gulp(\u30ac\u30eb\u30d7)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(\u305d\u306e1) (attacktube.com)<\/a><br>\u95a2\u9023\u8a18\u4e8b<br><a href=\"http:\/\/attacktube.com\/?p=1449\">Node.js\u306b\u51fa\u3066\u304f\u308b\u7528\u8a9e (attacktube.com)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>npm(Node Package Manager)gulp(\u30ac\u30eb\u30d7)\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(global install) \u4e0a\u8a18\u306e\u7528\u8a9e\u3092\u4f7f\u3063\u3066Node.js\u306b\u3064\u3044\u3066\u6587\u7ae0\u3092\u66f8\u3044\u3066\u3044\u304f\u3002gulp(\u30ac\u30eb\u30d7)\u306fNode.js\u306e\u30d1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1483","post","type-post","status-publish","format-standard","hentry","category-node-js"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/attacktube.com\/index.php?rest_route=\/wp\/v2\/posts\/1483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/attacktube.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/attacktube.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/attacktube.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/attacktube.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1483"}],"version-history":[{"count":13,"href":"https:\/\/attacktube.com\/index.php?rest_route=\/wp\/v2\/posts\/1483\/revisions"}],"predecessor-version":[{"id":1549,"href":"https:\/\/attacktube.com\/index.php?rest_route=\/wp\/v2\/posts\/1483\/revisions\/1549"}],"wp:attachment":[{"href":"https:\/\/attacktube.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/attacktube.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/attacktube.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}