Raviv
05/17/2018, 6:19 AMError: EACCES: permission denied, mkdir '/home/forge/.cache/prisma'
I am using a user called forge as i setup the digitalocean droplet via Laravel Forge system (which i have done for many projects) and bby default it sets up a none sudo user (forge) in addition to the root user.
Everything goes good until i try to run npm -g install prisma
,
somehow the system does not permit my user to create a new directory under
/home/forge/.cache/
which is not true, cause when i run a simple command with the same user
mkdir /home/forge/.cache/prisma
the directory is created successfully.
I have tried various solutions as in running it with sudo, deleting the .config directory so the system will produce it on runtime, calling an older version of prisma……
I have even gone to creating a new clean droplet and trying to set it up.
and no luck!!
If anyone can help i would be grateful, Thanks!!Raviv
05/17/2018, 6:23 AMnilan
05/22/2018, 1:12 PMnpm install prisma -D