LoginSignup
1
2

More than 1 year has passed since last update.

yarnの処理でEACCESエラーが出たときの対処法

Posted at

参考

エラー内容

EACCESのpermission deniedエラーが出ました。

 FATAL  EACCES: permission denied, mkdir '/home/xx/Documents/xxx-toC/frontend/node_modules/.cache/nuxt'




╭──────────────────────────────────────────────────────────────────────────────╮│                                                                              ││   ✖ Nuxt Fatal Error                                                         ││                                                                              ││   Error: EACCES: permission denied, mkdir                                    ││   '/home/xx/Documents/xxx-toC/frontend/node_modules/.cache/nuxt'   ││                                                                              │╰──────────────────────────────────────────────────────────────────────────────╯

error Command failed with exit code 1.

対処法

node modules のcacheへの権限がなさそうなので、そこに権限を与えました。

sudo chmod 777 node_modules/.cache/
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2