{"id":1457,"date":"2023-03-27T17:40:56","date_gmt":"2023-03-27T08:40:56","guid":{"rendered":"http:\/\/attacktube.com\/?p=1457"},"modified":"2023-06-28T07:47:29","modified_gmt":"2023-06-27T22:47:29","slug":"node-js%e5%85%a5%e9%96%80%e5%8b%89%e5%bc%b7-%e3%81%9d%e3%81%ae1-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","status":"publish","type":"post","link":"https:\/\/attacktube.com\/?p=1457","title":{"rendered":"\u3010Node.js\u3011gulp(\u30ac\u30eb\u30d7)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(\u305d\u306e1)"},"content":{"rendered":"\n<p>npm(Node Package Manager)<br>\u30d1\u30c3\u30b1\u30fc\u30b8(package)<br>package.json<br>package-lock.json<br>\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(local install)<br>gulp(\u30ac\u30eb\u30d7)<br>dependencies<br>devDependencies<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<\/p>\n\n\n\n<!--more-->\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>gulp(\u30ac\u30eb\u30d7)\u3092\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(local install)\u3059\u308b\u3002<\/p>\n\n\n\n<p><br><strong>\u624b\u98061<\/strong><br>npm init\u3067package.json\u3092\u4f5c\u308b\u3002<br>package.json\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084version\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre><code>\nPS C:\\Projects\\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:\\Projects\\sample\\package.json:\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\nIs this OK? (yes)\nPS C:\\Projects\\sample&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>\u624b\u98062<\/strong><br>gulp(\u30ac\u30eb\u30d7)\u3092\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br>\u5b9f\u306f\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f2\u7a2e\u985e\u3042\u308b\u3002<br>\u3053\u306e\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c2\u7a2e\u985e\u3042\u308b\u306e\u306f\u91cd\u8981\u3068\u601d\u3046\u304b\u3089\u899a\u3048\u3066\u304a\u3053\u3046\u3002<br><br>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save-dev\u306e\u65b9)(\u958b\u767a\u5411\u3051)\u300d\u3068\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save\u306e\u65b9)(\u30ea\u30ea\u30fc\u30b9\u5411\u3051)\u300d\u306e2\u7a2e\u985e\u3042\u308b\u3002<br>\u3053\u306e\u8a00\u3044\u65b9\u3060\u3051\u3069\u3001\u300c\u958b\u767a\u5411\u3051\u300d\u3001\u300c\u30ea\u30ea\u30fc\u30b9\u5411\u3051\u300d\u3001\u300c&#8211;save-dev\u306e\u65b9\u300d\u3001\u300c&#8211;save\u306e\u65b9\u300d\u3068\u304b\u3067\u3044\u3044\u306e\u304b\u306a\uff1f\u60a9\u3080\u306a\u3002\u3053\u306e\u8fba\u306f\u52c9\u5f37\u3092\u9032\u3081\u3066\u3044\u304f\u3068\u6b63\u3057\u3044\u8a00\u3044\u65b9\u304c\u5206\u304b\u3063\u3066\u304f\u308b\u304b\u306a\uff1f<br>\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306b\u300cnpm install\u300d\u3092\u884c\u3046\u304c\u3001\u3053\u306e\u3068\u304d\u306b\u4ed8\u3051\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u300c&#8211;save-dev\u300d\u3068\u300c&#8211;save\u300d\u306f\u5225\u7269\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u3053\u3068\u3002<br><br>gulp(\u30ac\u30eb\u30d7)\u3092\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068<br>package-lock.json\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u3002<br>package.json\u3092\u76f4\u63a5\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3059\u308b\u3053\u3068\u306f\u3042\u308b\u3002<br>package-lock.json\u306f\u76f4\u63a5\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3059\u308b\u3068\u304d\u304c\u3042\u308b\u306e\u304b\u306f\u4e0d\u660e\u3002<\/p>\n\n\n\n<pre><code>\n##\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(--save-dev\u306e\u65b9)\n\nnpm install --save-dev &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\nnpm install &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt; --save-dev \nnpm i -D &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\nnpm install -D &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\nnpm install &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt; -D\n\n\n## \u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(--save\u306e\u65b9)(\u30ea\u30ea\u30fc\u30b9\u5411\u3051)\n\nnpm i &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\nnpm install &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\nnpm install --save &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\nnpm install &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt; --save \nnpm i -S &lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;\n<\/code><\/pre>\n\n\n\n<p>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save-dev\u306e\u65b9)(\u958b\u767a\u5411\u3051)\u300d\u3092\u3057\u305f\u5834\u5408\u3001<br>\u300cnpm install gulp &#8211;save-dev\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<pre><code>\nPS C:\\Projects\\sample&gt; npm install gulp --save-dev\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 resolve-url@0.2.1: https:\/\/github.com\/lydell\/resolve-url#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\n\nadded 350 packages, and audited 351 packages in 39s\n\n12 packages are looking for funding\n  run `npm fund` for details\n\n6 high severity vulnerabilities\n\nTo address all issues, run:\n  npm audit fix\n\nRun `npm audit` for details.\nPS C:\\Projects\\sample&gt;\n<\/code><\/pre>\n\n\n\n<p>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save-dev\u306e\u65b9)(\u958b\u767a\u5411\u3051)\u300d\u3092\u3057\u305f\u5834\u5408\u3001<br>package.json\u306f\u6b21\u306b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<pre><code>\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  \"keywords\": [],\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"devDependencies\": {\n    \"gulp\": \"^4.0.2\"\n  }\n}\n<\/code><\/pre>\n\n\n\n<p>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save\u306e\u65b9)(\u30ea\u30ea\u30fc\u30b9\u5411\u3051)\u300d\u3092\u3057\u305f\u5834\u5408<br>\u300cnpm install gulp &#8211;save\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<pre><code>\nC:\\Projects5\\sample&gt; npm install gulp --save\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 resolve-url@0.2.1: https:\/\/github.com\/lydell\/resolve-url#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\n\nadded 350 packages, and audited 351 packages in 36s\n\n12 packages are looking for funding\n  run `npm fund` for details\n\n6 high severity vulnerabilities\n\nTo address all issues, run:\n  npm audit fix\n\nRun `npm audit` for details.\n\nC:\\Projects5\\sample&gt;\n<\/code><\/pre>\n\n\n\n<p>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save\u306e\u65b9)(\u30ea\u30ea\u30fc\u30b9\u5411\u3051)\u300d\u3092\u3057\u305f\u5834\u5408<br>package.json\u306f\u6b21\u306b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<pre><code>\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  \"dependencies\": {\n    \"gulp\": \"^4.0.2\"\n  }\n}\n<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306a\u6319\u52d5\u304b\u3089<br>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save-dev\u306e\u65b9)(\u958b\u767a\u5411\u3051)\u300d\u306fpackage.json\u306edevDependencies\u306bgulp\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3002<br>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save\u306e\u65b9)(\u30ea\u30ea\u30fc\u30b9\u5411\u3051)\u300d\u306fpackage.json\u306edependencies\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3002<br>\u3064\u307e\u308a\u3001\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save-dev\u306e\u65b9)(\u958b\u767a\u5411\u3051)\u300d\u3068\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save\u306e\u65b9)(\u30ea\u30ea\u30fc\u30b9\u5411\u3051)\u300d\u306fpackage.json\u306edevDependencies\u3068dependencies\u306e\u9055\u3044\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p>dependencies\uff1a\u672c\u756a\u74b0\u5883\u3067\u3082\u5229\u7528\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3084\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u3002<br>devDependencies\uff1a\u30c6\u30b9\u30c8\u74b0\u5883\u3068\u958b\u767a\u74b0\u5883\u3067\u5229\u7528\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3084\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u3002<br><br>\u958b\u767a\u8005\u304cpackage.json\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067npm install\u3092\u884c\u3046\u3068\u3001dependencies\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3082devDependencies\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u3059\u3079\u3066node_modules\u5185\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3002<br><br>\u958b\u767a\u8005\u304c\u81ea\u4f5c\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8sample\u3092\u516c\u958b\u3057\u3001\u958b\u767a\u8005\u4ee5\u5916\u306e\u4eba\u304cnpm install sample\u3068\u3057\u305f\u3068\u304d\u306b\u306f\u3001dependencies\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u304cnode_modules\u5185\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001devDependencies\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u306a\u3044\u3002<br><br>\u3053\u306e\u3088\u3046\u306a\u9055\u3044\u304cdevDependencies\u3068dependencies\u306b\u3042\u308b\u304c\u3001\u3053\u306e\u8fba\u304c\u3044\u307e\u3044\u3061\u30d4\u30f3\u3068\u3053\u306a\u3044\u3002<br>devDependencies\u3068dependencies\u3067\u5206\u3051\u308b\u30e1\u30ea\u30c3\u30c8\u304c\u7406\u89e3\u3067\u304d\u306a\u3044\u3002<\/p>\n\n\n\n<p><strong>\u624b\u98063<\/strong><br>gulp(\u30ac\u30eb\u30d7)\u304c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002<br>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save-dev\u306e\u65b9)(\u958b\u767a\u5411\u3051)\u300d\u3068\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save\u306e\u65b9)(\u30ea\u30ea\u30fc\u30b9\u5411\u3051)\u300d\u306e\u5834\u5408\u306f\u3001<br>\u300cgulp -v\u300d\u304c\u8a8d\u8b58\u3055\u308c\u306a\u3044\u3002\u3053\u308c\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u306f\u306a\u3044\u305f\u3081\u3067\u3042\u308b\u3002<br>\u300cnode .\\node_modules\\gulp\\bin\\gulp.js -v\u300d\u304c\u8a8d\u8b58\u3055\u308c\u308b\u3002\u3053\u308c\u3067version\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6210\u529f\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre><code>\nC:\\Projects\\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:\\Projects\\sample&gt;node .\\node_modules\\gulp\\bin\\gulp.js -v\nCLI version: 2.3.0\nLocal version: 4.0.2\n\nC:\\Projects\\sample&gt;\n<\/code><\/pre>\n\n\n\n<pre><code>\nC:\\Projects5\\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:\\Projects5\\sample&gt;node .\\node_modules\\gulp\\bin\\gulp.js -v\nCLI version: 2.3.0\nLocal version: 4.0.2\n\nC:\\Projects5\\sample&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>\u624b\u98064<\/strong><br>gulp(\u30ac\u30eb\u30d7)\u304c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b(\u305d\u306e2)\u3002<br>script\u30d7\u30ed\u30d1\u30c6\u30a3\u306bgulp\u3092\u8ffd\u52a0\u3057\u3066\u300cnpm run gulp -v\u300d\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068version\u304c\u8868\u793a\u3055\u308c\u3088\u3046\u306b\u306a\u308b\u3002\u305f\u3060\u3057\u3001\u3053\u306eversion\u304cnpm\u306eversion\u307f\u305f\u3044\u3002\u306a\u3093\u3067gulp\u306eversion\u3067\u306f\u306a\u304fnpm\u306eversion\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3060\u308d\u3046\u304b\uff1f\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save-dev\u306e\u65b9)(\u958b\u767a\u5411\u3051)\u300d\u306e\u5834\u5408<br>package.json\u306b\u300c&#8221;gulp&#8221;:&#8221;gulp&#8221;,\u300d\u306b\u8ffd\u52a0\u306f\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3092\u3059\u308b\u3002<\/p>\n\n\n\n<pre><code>\n{\n  \"name\": \"sample\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"gulp\":\"gulp\",\n    \"test\": \"echo \\\"Error: no test specified\\\" &amp;&amp; exit 1\"\n  },\n  \"keywords\": [],\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"devDependencies\": {\n    \"gulp\": \"^4.0.2\"\n  }\n}\n<\/code><\/pre>\n\n\n\n<pre><code>\nC:\\Projects\\sample&gt;npm run gulp -v\n8.13.2\n\nC:\\Projects\\sample&gt;npm -v\n8.13.2\n<\/code><\/pre>\n\n\n\n<p>\u300c\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(&#8211;save\u306e\u65b9)(\u30ea\u30ea\u30fc\u30b9\u5411\u3051)\u300d\u306e\u5834\u5408<br>package.json\u306b\u300c&#8221;gulp&#8221;:&#8221;gulp&#8221;,\u300d\u306b\u8ffd\u52a0\u306f\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3092\u3059\u308b\u3002<\/p>\n\n\n\n<pre><code>\n{\n  \"name\": \"sample\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"gulp\":\"gulp\",\n    \"test\": \"echo \\\"Error: no test specified\\\" &amp;&amp; exit 1\"\n  },\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"dependencies\": {\n    \"gulp\": \"^4.0.2\"\n  }\n}\n<\/code><\/pre>\n\n\n\n<pre><code>\nC:\\Projects5\\sample&gt;npm run gulp -v\n8.13.2\n\nC:\\Projects5\\sample&gt;npm -v\n8.13.2\n<\/code><\/pre>\n\n\n\n<p><strong>\u624b\u98065<\/strong><\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u89a7\u3059\u308b\u300cnpm ls\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066gulp\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<pre><code>\nC:\\Projects\\sample&gt;npm list gulp\nsample@1.0.0 C:\\Projects\\sample\n`-- gulp@4.0.2\nC:\\Projects\\sample&gt;cd C:\\Projects5\\sample\n\nC:\\Projects5\\sample&gt;npm ls\nsample@1.0.0 C:\\Projects5\\sample\n`-- gulp@4.0.2\n\nC:\\Projects5\\sample&gt;\n<\/code><\/pre>\n\n\n\n<p>\u7d9a\u304d\u306e\u8a18\u4e8b<br><a href=\"http:\/\/attacktube.com\/?p=1483\">Node.js\u5165\u9580(\u52c9\u5f37 \u305d\u306e2) gulp(\u30ac\u30eb\u30d7)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(\u305d\u306e2) (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><br><br>\u53c2\u8003<br><a href=\"https:\/\/qiita.com\/chihiro\/items\/ca1529f9b3d016af53ec\">\u3010\u3044\u307e\u3055\u3089\u3067\u3059\u304c\u3011package.json\u306edependencies\u3068devDependencies &#8211; Qiita<\/a> ExternalLink<br><a href=\"https:\/\/qiita.com\/mzmz__02\/items\/289f5ac7e18c7619614a\">\u3010Node.js\u3011dependencies\u3068devDependencies\u306e\u9055\u3044 &#8211; Qiita<\/a> ExternalLink<\/p>\n\n\n\n<script type=\"text\/javascript\">\njQuery(function($){\n$(\".jp-video\").hide();\n});\n<\/script>\n\n\n\n<p><br><br><br><br><br><br><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>npm(Node Package Manager)\u30d1\u30c3\u30b1\u30fc\u30b8(package)package.jsonpackage-lock.json\u30ed\u30fc\u30ab\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(local install)gulp(\u30ac\u30eb\u30d7)dependen [&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-1457","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\/1457","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=1457"}],"version-history":[{"count":43,"href":"https:\/\/attacktube.com\/index.php?rest_route=\/wp\/v2\/posts\/1457\/revisions"}],"predecessor-version":[{"id":3554,"href":"https:\/\/attacktube.com\/index.php?rest_route=\/wp\/v2\/posts\/1457\/revisions\/3554"}],"wp:attachment":[{"href":"https:\/\/attacktube.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/attacktube.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/attacktube.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}