{"id":51,"date":"2015-06-22T12:00:00","date_gmt":"2015-06-22T03:00:00","guid":{"rendered":"https:\/\/jikoman.sin-cos.com\/blog\/?p=51"},"modified":"2015-06-22T12:00:00","modified_gmt":"2015-06-22T03:00:00","slug":"16-nmp-insta","status":"publish","type":"post","link":"https:\/\/jikoman.sin-cos.com\/blog\/2015\/06\/16-nmp-insta\/","title":{"rendered":"\u30b5\u30a4\u30c8\u6539\u88c5\u3078\u306e\u9053(16) \u300cnpm install\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u300d"},"content":{"rendered":"<p>$ npm install gulp<br \/>\n\u6628\u65e5\u3001\u305d\u3046\u3084\u3063\u3066gulp\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3060\u304c\u3057\u304b\u3057\u3001nmp\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u306b\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&#8211;save-dev<\/p>\n<p>\n\u958b\u767a\u6642\u306b\u306e\u307f\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306b\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<p>&#8211;save<\/p>\n<p>\n\u5b9f\u884c\u74b0\u5883\u3067\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306b\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u304a\u304f\u3068\u3001package.json\u304c\u5909\u66f4\u3055\u308c\u3001nmp install\u3060\u3051\u3067\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3002<\/p>\n<p>\u3060\u304c\u3001packege.json\u81ea\u4f53\u3092\u4f5c\u308b\u624b\u9806\u3092\u8e0f\u3093\u3067\u306a\u3044\u3068\u50cd\u304b\u306a\u3044\u3089\u3057\u3044\u3002<br \/>\n\u306a\u306e\u3067\u3001\u307e\u305a\u521d\u671f\u5316\u3002<\/p>\n<p>$ npm init<br \/>\nThis utility will walk you through creating a package.json file.<br \/>\nIt only covers the most common items, and tries to guess sensible defaults.<br \/>\nSee `npm help json` for definitive documentation on these fields<br \/>\nand exactly what they do.<br \/>\nUse `npm install  &#8211;save` afterwards to install a package and<br \/>save it as a dependency in the package.json file.<br \/>Press ^C at any time to quit.<br \/>name: (yii2-app-advanced)<br \/>version: (1.0.0)<br \/>description:<br \/>entry point: (gulpfile.js)<br \/>test command:<br \/>git repository:<br \/>keywords:<br \/>author:<br \/>license: (ISC)<br \/>About to write to d:xampphtdocsyii2-app-advancedpackage.json:<br \/>{<br \/>&nbsp; &#8220;name&#8221;: &#8220;yii2-app-advanced&#8221;,<br \/>&nbsp; &#8220;version&#8221;: &#8220;1.0.0&#8221;,<br \/>&nbsp; &#8220;description&#8221;: &#8220;Yii 2 Advanced Project Template ===============================&#8221;,<br \/>&nbsp; &#8220;main&#8221;: &#8220;gulpfile.js&#8221;,<br \/>&nbsp; &#8220;directories&#8221;: {<br \/>&nbsp; &nbsp; &#8220;test&#8221;: &#8220;tests&#8221;<br \/>&nbsp; },<br \/>&nbsp; &#8220;scripts&#8221;: {<br \/>&nbsp; &nbsp; &#8220;test&#8221;: &#8220;echo &#8220;Error: no test specified&#8221; &amp;&amp; exit 1&#8243;<br \/>&nbsp; },<br \/>&nbsp; &#8220;author&#8221;: &#8220;&#8221;,<br \/>&nbsp; &#8220;license&#8221;: &#8220;ISC&#8221;<br \/>}<\/p>\n<p>Is this ok? (yes) yes<br \/>\n\u6700\u5f8c\u306eyes\u3092\u5165\u529b\u3057\u305f\u4ee5\u5916\u306f\u3001\u305d\u306e\u307e\u307eEnter\u30ad\u30fc\u3002<br \/>\n\u3053\u306e\u521d\u671f\u5316\u3067\u3001\u6b21\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30ebpackege.json\u304c\u751f\u6210\u3055\u308c\u305f\u3002<\/p>\n<p>{<br \/>\n&nbsp; &#8220;name&#8221;: &#8220;yii2-app-advanced&#8221;,<br \/>\n&nbsp; &#8220;version&#8221;: &#8220;1.0.0&#8221;,<br \/>\n&nbsp; &#8220;description&#8221;: &#8220;Yii 2 Advanced Project Template ===============================&#8221;,<br \/>\n&nbsp; &#8220;main&#8221;: &#8220;gulpfile.js&#8221;,<br \/>\n&nbsp; &#8220;directories&#8221;: {<br \/>\n&nbsp; &nbsp; &#8220;test&#8221;: &#8220;tests&#8221;<br \/>\n&nbsp; },<br \/>\n&nbsp; &#8220;scripts&#8221;: {<br \/>\n&nbsp; &nbsp; &#8220;test&#8221;: &#8220;echo &#8220;Error: no test specified&#8221; &amp;&amp; exit 1&#8243;<br \/>\n&nbsp; },<br \/>\n&nbsp; &#8220;author&#8221;: &#8220;&#8221;,<br \/>\n&nbsp; &#8220;license&#8221;: &#8220;ISC&#8221;<br \/>\n}<\/p>\n<div>\n\u305d\u306e\u5f8c\u306bgulp\u3092save-dev\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/div>\n<div>\n<p>$ npm install &#8211;save-dev gulp<br \/>\nnpm WARN package.json yii2-app-advanced@1.0.0 No repository field.<br \/>\ngulp@3.9.0 node_modulesgulp<br \/>\n\u251c\u2500\u2500 interpret@0.6.2<br \/>\n\u251c\u2500\u2500 pretty-hrtime@1.0.0<br \/>\n\u251c\u2500\u2500 deprecated@0.0.1<br \/>\n\u251c\u2500\u2500 archy@1.0.0<br \/>\n\u251c\u2500\u2500 tildify@1.1.0 (os-homedir@1.0.0)<br \/>\n\u251c\u2500\u2500 minimist@1.1.1<br \/>\n\u251c\u2500\u2500 v8flags@2.0.7 (user-home@1.1.1)<br \/>\n\u251c\u2500\u2500 chalk@1.0.0 (escape-string-regexp@1.0.3, ansi-styles@2.0.1, supports-color@1.3.1, has-ansi@1.0.3, strip-ansi@2.0.1)<br \/>\n\u251c\u2500\u2500 semver@4.3.6<br \/>\n\u251c\u2500\u2500 orchestrator@0.3.7 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5)<br \/>\n\u251c\u2500\u2500 liftoff@2.1.0 (extend@2.0.1, rechoir@0.6.1, flagged-respawn@0.3.1, resolve@1.1.6, findup-sync@0.2.1)<br \/>\n\u251c\u2500\u2500 vinyl-fs@0.3.13 (graceful-fs@3.0.8, strip-bom@1.0.0, defaults@1.0.2, vinyl@0.4.6, mkdirp@0.5.1, through2@0.6.5, glob-stream@3.1.18, glob-watcher@0.0.6)<br \/>\n\u2514\u2500\u2500 gulp-util@3.0.5 (array-differ@1.0.0, array-uniq@1.0.2, lodash._reinterpolate@3.0.0, beeper@1.1.0, lodash._reescape@3.0.0, object-assign@2.1.1, lodash._reevaluate@3.0.0, replace-ext@0.0.1, vinyl@0.4.6, lodash.template@3.6.1, through2@0.6.5, multipipe@0.1.2, dateformat@1.0.11)\n<\/div>\n<div>\n\u305d\u3046\u3059\u308b\u3068\u3001packege.json\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u3002<\/div>\n<div>\n<p>{<br \/>\n&nbsp; &#8220;name&#8221;: &#8220;yii2-app-advanced&#8221;,<br \/>\n&nbsp; &#8220;version&#8221;: &#8220;1.0.0&#8221;,<br \/>\n&nbsp; &#8220;description&#8221;: &#8220;Yii 2 Advanced Project Template ===============================&#8221;,<br \/>\n&nbsp; &#8220;main&#8221;: &#8220;gulpfile.js&#8221;,<br \/>\n&nbsp; &#8220;directories&#8221;: {<br \/>\n&nbsp; &nbsp; &#8220;test&#8221;: &#8220;tests&#8221;<br \/>\n&nbsp; },<br \/>\n&nbsp; &#8220;scripts&#8221;: {<br \/>\n&nbsp; &nbsp; &#8220;test&#8221;: &#8220;echo &#8220;Error: no test specified&#8221; &amp;&amp; exit 1&#8243;<br \/>\n&nbsp; },<br \/>\n&nbsp; &#8220;author&#8221;: &#8220;&#8221;,<br \/>\n&nbsp; &#8220;license&#8221;: &#8220;ISC&#8221;,<br \/>\n&nbsp; &#8220;devDependencies&#8221;: {&nbsp; &nbsp; &#8220;gulp&#8221;: &#8220;^3.9.0&#8221;&nbsp; }}\n<\/div>\n<div>\n\u3046\u3093\u3002\u5897\u3048\u305f\u3002<\/div>\n<div>\n\u3053\u308c\u3067node_modules\u3092\u914d\u3089\u306a\u304f\u3066\u3082\u3001npm install\u3067\u958b\u767a\u74b0\u5883\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u3002<\/div>\n<div>\n\u3068\u3044\u3046\u4e8b\u304b\u306a\u3041\uff1f\uff1f\uff1f<\/div>\n","protected":false},"excerpt":{"rendered":"<p>$ npm install gulp \u6628\u65e5\u3001\u305d\u3046\u3084\u3063\u3066gulp\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002 \u3060\u304c\u3057\u304b\u3057\u3001nmp\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u306b\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002 &#8211;save-dev \u958b\u767a\u6642\u306b\u306e\u307f\u5fc5\u8981\u306a\u30e9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-130"],"_links":{"self":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":0,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}