{"id":81,"date":"2022-02-10T09:10:20","date_gmt":"2022-02-10T00:10:20","guid":{"rendered":"https:\/\/global-hack.com\/blog\/?p=81"},"modified":"2022-02-10T09:15:18","modified_gmt":"2022-02-10T00:15:18","slug":"%e3%80%90laravel%e3%80%91%e3%82%a8%e3%83%a9%e3%83%bc%e5%af%be%e5%bf%9c-in-packagemanifest-php-line-177the-%e3%80%9c-bootstrap-cache-directory-must-be-present-and-writable-%e3%81%ae%e5%af%be%e5%87%a6","status":"publish","type":"post","link":"https:\/\/global-hack.com\/blog\/archives\/81","title":{"rendered":"\u3010Laravel\u3011\u30a8\u30e9\u30fc\u5bfe\u5fdc In PackageManifest.php line 177:The \u301c\/bootstrap\/cache directory must be present and writable. \u306e\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"<h3>composer update\u3067\u306e\u30a8\u30e9\u30fc<\/h3>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>In PackageManifest.php line 177:\r\n\u3000The \u301c\/bootstrap\/cache directory must be present and writable.<\/code><\/pre>\n<\/div>\n<p>\u666e\u6bb5\u5f04\u3063\u3066\u3044\u306a\u3044Laravel\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u958b\u304f\u3068\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u3001\u5bfe\u51e6\u65b9\u6cd5\u3092\u8abf\u3079\u305f\u7d50\u679c\u3001<a href=\"https:\/\/stackoverflow.com\/questions\/43718391\/laravel-throws-the-bootstrap-cache-directory-must-be-present-and-writable-erro\" target=\"_blank\" rel=\"nofollow noopener\" title=\"stackoverflow\">stackoverflow<\/a>\u306b\u8a18\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<!--more--><\/p>\n<h3>\u57fa\u672c\u7684\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2<\/h3>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ php artisan cache:clear<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u3001\u5185\u90e8\u306b\u6b8b\u3063\u305f\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30af\u30ea\u30a2\u3059\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3053\u308c\u3067\u3082\u300c<code>In PackageManifest.php line 177<\/code>\u300d\u306e\u30a8\u30e9\u30fc\u306f\u6d88\u3048\u306a\u304b\u3063\u305f\u3002<\/p>\n<h3>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u5909\u66f4<\/h3>\n<p>stackoverflow\u306e\u56de\u7b54\u8005\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u5909\u66f4\u306e\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u305f\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u3063\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo chmod -R 777 bootstrap\/cache\/<\/code><\/pre>\n<\/div>\n<p>777\u3068\u3044\u3042\u305f\u308a\u304c\u6c17\u6301\u3061\u60aa\u3044\u6c17\u3082\u3057\u307e\u3059\u304c\u3001\u307b\u3068\u3093\u3069\u306e\u65b9\u304c\u3053\u308c\u3067\u89e3\u6d88\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u79c1\u306e\u5834\u5408\u306f\u3001<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>chmod: bootstrap\/cache \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093<\/code><\/pre>\n<\/div>\n<p>\u3068\u3044\u3046\u5177\u5408\u306b\u30a8\u30e9\u30fc\u304c\u8fd4\u3055\u308c\u308b\u3002\u305d\u3082\u305d\u3082\u300c<code>bootstrap\/cache<\/code>\u300d\u304c\u306a\u3044\u306e\u3067\u3042\u308b\u3002<\/p>\n<p>\u3048\u3063\uff01\uff1f\u306a\u305c\u306a\u3044\u306e\u304b\uff01\uff1f\u3068\u3001\u3057\u3070\u3089\u304f\u8003\u3048\u305f\u304c\u5168\u304f\u8a18\u61b6\u306b\u306a\u3044\u3002<\/p>\n<h3>\u89e3\u6c7a\u3057\u305f\u5bfe\u51e6\u65b9\u6cd5<\/h3>\n<p>\u3068\u308a\u3042\u3048\u305a\u52d5\u304f\u72b6\u614b\u306b\u3059\u308b\u305f\u3081\u306b\u300c<code>bootstrap<\/code>\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185 \u306b\u300c<code>cache<\/code>\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7528\u610f\u3059\u308b\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ mkdir cache\r\n$ chmod 777 cache -R <\/code><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u4e0a\u8a18\u306e\u901a\u308a\u300c<code>cache<\/code>\u300d\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u632f\u3063\u3066\u52d5\u304f\u72b6\u614b\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u304b\u3089Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u53e9\u304f\u3068\u3001\u5148\u307b\u3069\u306e\u300c<code>cache<\/code>\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u300cpackages.php\u300d\u3068\u300cservices.php\u300d\u304c\u751f\u6210\u3055\u308c\u3066\u3044\u308c\u3070\u5bfe\u51e6\u5b8c\u4e86\u3002<\/p>\n<p>\u304a\u305d\u3089\u304f\u307e\u305f\u540c\u3058\u3053\u3068\u304c\u8d77\u3053\u308a\u305d\u3046\u306a\u4e88\u611f\u304c\u3057\u307e\u3059\u3002\u3067\u304d\u308c\u3070\u539f\u56e0\u3092\u65e9\u3044\u3046\u3061\u306b\u7279\u5b9a\u3057\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>composer update\u3067\u306e\u30a8\u30e9\u30fc In PackageManifest.php line 177: \u3000The \u301c\/bootstrap\/cache directory must be present and writable. \u666e\u6bb5\u5f04 <a class=\"mh-excerpt-more\" href=\"https:\/\/global-hack.com\/blog\/archives\/81\" title=\"\u3010Laravel\u3011\u30a8\u30e9\u30fc\u5bfe\u5fdc In PackageManifest.php line 177:The \u301c\/bootstrap\/cache directory must be present and writable. \u306e\u5bfe\u51e6\u65b9\u6cd5\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":82,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,12],"tags":[39,38,40],"class_list":["post-81","post","type-post","status-publish","format-standard","has-post-thumbnail","category-laravel","category-php","tag-bootstrap","tag-composer","tag-stackoverflow"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/02\/bootstrap-cache-error.jpg","_links":{"self":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":0,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media\/82"}],"wp:attachment":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}