Replies: 54 comments 39 replies
-
It seems like you're getting a permission denied error: What happens when you install without |
Beta Was this translation helpful? Give feedback.
-
Not enough rights?
|
Beta Was this translation helpful? Give feedback.
-
Weird. It seems like it's an issue with how you have Node/NPM configured. Are you able to install other modules globally? Also, you may be able to avoid the issue if you use npx to execute expo-cli commands without needing to download it: |
Beta Was this translation helpful? Give feedback.
-
This seems to be a problem with the permissions of your |
Beta Was this translation helpful? Give feedback.
-
This isn't really about permissions it's about sharp and its dependencies... I just encountered the issue so looking into it will post if find any |
Beta Was this translation helpful? Give feedback.
-
this worked found it on expo's forum :) |
Beta Was this translation helpful? Give feedback.
-
this worked for me |
Beta Was this translation helpful? Give feedback.
-
For me only work "Manually change npm’s default directory" from https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally AND "npm install --unsafe-perm -g expo-cli" (without sudo) nodejs -v npm -v expo --version cat /etc/issue cat /proc/version |
Beta Was this translation helpful? Give feedback.
-
sudo npm install --unsafe-perm -g expo-cli |
Beta Was this translation helpful? Give feedback.
-
as chinese developer, i use this command
|
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Complete uninstall and reinstall of node.js and npm did the trick for me on Win 10. Before I had tried to install expo I upgraded node to v10. Maybe this was causing the error. |
Beta Was this translation helpful? Give feedback.
-
After spending almost 1 day, i resolved this issue, this error is due to sharp If you are having issues during installation consider removing the directory C:\Users[user]\AppData\Roaming\npm-cache_libvips. npm install -g sharp (The installation require python 2.7 on windows and path env configuration) npm install -g expo-cli |
Beta Was this translation helpful? Give feedback.
-
@imrizwan you didn't wast time. You actually invested your time, Like I am investing. |
Beta Was this translation helpful? Give feedback.
-
This works |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
You need to upgrade npm this helps me |
Beta Was this translation helpful? Give feedback.
-
This worked for me! |
Beta Was this translation helpful? Give feedback.
-
For Windows 10, I found a solution which should work in any case. Just use the following command: |
Beta Was this translation helpful? Give feedback.
-
Couldn't install Expo-CLI on ubuntu. #1133 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
ERR! Unexpected end of JSON input while parsing near '...pack"}},"3.4.2":{"nam' npm ERR! A complete log of this run can be found in: i have this error and i tried all solution you guys suggested but wasn't worked |
Beta Was this translation helpful? Give feedback.
-
I am facing this:- `PS C:\Users\HP> npm install expo-cli --global
Does not seem like WSL enabled on this machine. Download a Linux distro from the Windows Store, run it at least onceand then make sure to run in an admin powershell: npm ERR! code EEXIST npm ERR! A complete log of this run can be found in: |
Beta Was this translation helpful? Give feedback.
-
don't waste your time with npm...It's a big mess
|
Beta Was this translation helpful? Give feedback.
-
What worked for me was simply upgrading node version. I saw an error message which stated that node 12 >= version is required for expo. |
Beta Was this translation helpful? Give feedback.
-
sudo npm install --unsafe-perm -g expo-cli |
Beta Was this translation helpful? Give feedback.
-
npm ERR! code EPERM npm ERR! A complete log of this run can be found in: help please, it makes me angry already) |
Beta Was this translation helpful? Give feedback.
-
While running my expo React Native app on my older 2015 mac I had no problem. I bought a new one yesterday and I get the error: A lot of people are saying to use --unsafe-perm flag but I don't know what this is about? Why did it work on my older mac (everything was ported over to my new mac...I would assume permissions are the same) but not the new one. On my new mac I can run sudo expo start and it works but I would like to avoid that if I can. can I change permissions on a specific folder to avoid using --unsafe-perm or sudo, or is this a new security feature? I'm lost |
Beta Was this translation helpful? Give feedback.
-
I had the same error currently, I managed to fix it by giving Disk permission in Security & Privacy on my Macbook. It is in the systems preference. I also put the command below in the terminal: sudo npm install --global expo-cli |
Beta Was this translation helpful? Give feedback.
-
Thnx bro it has worked much love |
Beta Was this translation helpful? Give feedback.
-
macos 10.14.4
node v10.12.0
Can't install expo cli
Beta Was this translation helpful? Give feedback.
All reactions