Questions & Answers

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.

Answers(2) :

First i do

ls -la

Identify which folders not below to my user and run

sudo chown -R $USER <FOLDER>

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.