{"id":2287,"date":"2021-02-25T02:17:00","date_gmt":"2021-02-24T17:17:00","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=2287"},"modified":"2021-07-16T19:46:28","modified_gmt":"2021-07-16T10:46:28","slug":"npm%e3%83%91%e3%83%83%e3%82%b1%e3%83%bc%e3%82%b8%e3%82%92%e4%bd%9c%e6%88%90%e3%81%97%e5%85%ac%e9%96%8b%e3%81%99%e3%82%8b%e3%81%ab%e3%81%af","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=2287","title":{"rendered":"npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u516c\u958b\u3059\u308b\u306b\u306f"},"content":{"rendered":"<p>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u516c\u958b\u3001&#8221;npm install&#8221;\u3084&#8221;npm install &#8211;global&#8221;\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306b\u3059\u308b\u65b9\u6cd5\u306e\u30ac\u30a4\u30c9\u3067\u3059\u3002<\/p>\n<p>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u516c\u958b\u524d\u306b\u3001node.js\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5b8c\u6210\u3057\u3066\u3044\u308b\u3053\u3068\u3001package.json\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001npm\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<pre><code>npm login\n<\/code><\/pre>\n<p>npm\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u4f5c\u6210\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u3088\u308a\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.npmjs.com\/\">npm<\/a><\/p>\n<p>\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u516c\u958b\u3057\u307e\u3059\u3002<\/p>\n<pre><code>npm publish\n<\/code><\/pre>\n<p>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u6b63\u5e38\u306b\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code>npm show &lt;package-name&gt;\n<\/code><\/pre>\n<p>\u4f8b\u3068\u3057\u3066\u3001\u50d5\u306e\u4f5c\u6210\u3057\u305fnpm\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code>$ npm show notification-cli\n\nnotification-cli@1.0.4 | BSD-3-Clause | deps: 4 | versions: 5\nMinimalistic Command Line Notification Application under 50 Lines\nhttps:\/\/github.com\/yuis-ice\/notification-cli\n\nkeywords: notifications, nodejs, cli, reminder, command-line, scheduler, cli-app, command-line-tool, time-management\n\nbin: noc\n\ndist\n.tarball: https:\/\/registry.npmjs.org\/notification-cli\/-\/notification-cli-1.0.4.tgz\n.shasum: 2480a8ea01264fb3ceebe85563c7da7faa572541\n.integrity: sha512-rr2nsXMp25wFpVQ..qECk3o5lJQu8lw==     \n.unpackedSize: 7.4 kB\n\ndependencies:\ncommander: ^6.2.1     moment: ^2.29.1       node-notifier: ^9.0.0 node-schedule: ^2.0.0\n\nmaintainers:\n- yuis-ice &lt;***&gt;\n\ndist-tags:\nlatest: 1.0.4\n\npublished 4 days ago by yuis-ice &lt;***&gt;\n<\/code><\/pre>\n<p>(\u53c2\u8003)<\/p>\n<p><a href=\"https:\/\/www.google.com\/search?q=npm+packages+not+showing+up\">npm packages not showing up &#8211; Google Search<\/a><br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/54059264\/i-published-one-package-on-npm-but-its-not-showing-in-the-search-list-when-i-a\">node.js &#8211; I published one package on npm, but it&#8217;s not showing in the search list when i am going to search &#8211; Stack Overflow<\/a><\/p>\n<p>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u516c\u958b\u306e\u4ed5\u65b9\u306f\u4ee5\u4e0a\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306b\u4f8b\u3068\u3057\u3066\u50d5\u306e\u4f5c\u6210\u3057\u305fnpm\u30d1\u30c3\u30b1\u30fc\u30b8\u306epackage.json\u3092\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f7f\u7528\u304a\u3088\u3073\u30b3\u30d4\u30fc\u306f\u30e9\u30a4\u30bb\u30f3\u30b9\u4e0b\u306b\u304a\u3044\u3066\u81ea\u7531\u3067\u3059\u3002\u53c2\u8003\u306b\u3057\u3066\u3060\u3055\u3044\u3002<br \/>\n\u307e\u305f\u3001\u4ee5\u4e0b\u306b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8aac\u660e\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre><code>{\n  \"name\": \"notification-cli\",\n  \"version\": \"1.0.4\",\n  \"description\": \"Minimalistic Command Line Notification Application under 50 Lines\",\n  \"main\": \"noc\",\n  \"bin\": {\n    \"noc\": \".\/noc\"\n  },\n  \"dependencies\": {\n    \"commander\": \"^6.2.1\",\n    \"moment\": \"^2.29.1\",\n    \"node-notifier\": \"^9.0.0\",\n    \"node-schedule\": \"^2.0.0\"\n  },\n  \"devDependencies\": {},\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" &amp;&amp; exit 1\"\n  },\n  \"homepage\": \"https:\/\/github.com\/yuis-ice\/notification-cli\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https:\/\/github.com\/yuis-ice\/notification-cli.git\"\n  },\n  \"keywords\": [\n    \"notifications\",\n    \"nodejs\",\n    \"cli\",\n    \"reminder\",\n    \"command-line\",\n    \"scheduler\",\n    \"cli-app\",\n    \"command-line-tool\",\n    \"time-management\"\n  ],\n  \"author\": \"*** &lt;***&gt;\",\n  \"license\": \"BSD-3-Clause\"\n}\n<\/code><\/pre>\n<p>\/\/ description<\/p>\n<p>description\u30d7\u30ed\u30d1\u30c6\u30a3\u306fnpm\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u4e0a\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002SEO\u3068\u3057\u3066\u82e5\u5e72\u306e\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002\u6642\u9593\u304c\u3042\u308b\u306a\u3089\u4ed8\u3051\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\/\/ bin<\/p>\n<p>bin\u30d7\u30ed\u30d1\u30c6\u30a3\u306fnpm\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u306b\u53c2\u7167\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3067\u3059\u3002\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068<code>npm install --global<\/code>\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002(npm\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d1\u30b9\u306b\u901a\u3063\u3066\u3044\u306a\u3044\u305f\u3081)<\/p>\n<pre><code>\"bin\": {\n  \"noc\": \".\/noc\"\n},\n<\/code><\/pre>\n<p>\/\/ homepage<br \/>\n\/\/ repository<br \/>\n\/\/ keywords<\/p>\n<p>\u3053\u308c\u3089\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306fnpm\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u4e0a\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002SEO\u3068\u3057\u3066\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nGithub\u30da\u30fc\u30b8\u306b\u30ea\u30f3\u30af\u30bd\u30fc\u30b9\u3092\u9001\u308a\u305f\u3044\u5834\u5408\u306f&#8221;repository&#8221;\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\nnpm\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u4e0a\u3067\u306e\u691c\u7d22\u306b\u304a\u3044\u3066&#8221;keywords&#8221;\u306f\u305d\u308c\u306a\u308a\u306eSEO\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u516c\u958b\u3055\u308c\u305fnpm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u5b9f\u884c\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre><code>npm i --global notification-cli\n<\/code><\/pre>\n<p>(\u50d5\u306e\u4f5c\u6210\u3057\u305fnpm\u30d1\u30c3\u30b1\u30fc\u30b8\u3001\u304a\u3088\u3073package.json: notification-cli)<\/p>\n<p><a href=\"https:\/\/github.com\/yuis-ice\/notification-cli\/\">yuis-ice\/notification-cli: Minimalistic Command Line Notification Application under 50 Lines<\/a><br \/>\n<a href=\"https:\/\/github.com\/yuis-ice\/notification-cli\/blob\/main\/package.json\">notification-cli\/package.json at main \u00b7 yuis-ice\/notification-cli<\/a><\/p>\n<p>(\u305d\u306e\u4ed6\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u306anpm\u30d1\u30c3\u30b1\u30fc\u30b8\u3001\u304a\u3088\u3073package.json)<\/p>\n<p><a href=\"https:\/\/github.com\/tldr-pages\/tldr-node-client\/blob\/master\/package.json\">tldr-node-client\/package.json at master \u00b7 tldr-pages\/tldr-node-client<\/a><br \/>\n<a href=\"https:\/\/github.com\/erikdubbelboer\/node-sleep\/blob\/master\/package.json\">node-sleep\/package.json at master \u00b7 erikdubbelboer\/node-sleep<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u516c\u958b\u3001&#8221;npm install&#8221;\u3084&#038;#8221 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-AT","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2287"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2287"}],"version-history":[{"count":2,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2287\/revisions"}],"predecessor-version":[{"id":2381,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2287\/revisions\/2381"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}