Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/expo-cli'

I came accross this error that seems to be a permission issue, took me a while so i just wanted to share a solution I found for this.

If other solutions ?, please share them.

like image 507
Relie Essom Avatar asked Aug 23 '26 01:08

Relie Essom


1 Answers

The current solution I found for this issue is to change the permissions to the current user.

sudo chown -R $USER /usr/local/lib/node_modules

then try running

npm install -g <dependency>

Hope this works for you.

like image 80
Relie Essom Avatar answered Aug 25 '26 15:08

Relie Essom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!