无法运行"npm install expo-cli --global" [英] Can't run "npm install expo-cli --global"

查看:63
本文介绍了无法运行"npm install expo-cli --global"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是所有这些东西的新手.希望您的理解.

I am a newbie in all this stuff. Hope for your understanding.

让我澄清一下这个问题:我正在尝试通过EXPO CLI开始对本机应用程序做出反应.因此尝试启动 npm install expo-cli --global 来全局安装npm.我收到这些错误:

Let me clarify the issue: I am trying to start react native app through expo cli. So tried to start npm install expo-cli --global to install npm globally. I got these errors:

它还说我没有访问权限.如何允许权限?即使我尝试在本地启动它,我也遇到同样的问题.感谢您的帮助.

It also says that I lack permissions to access it. How can I allow permissions? Even when I try to start it locally I got the same issue. Your help is appreciated.

推荐答案

尽管该解决方案不是最佳解决方案,并且存在最安全的解决方案,但它对我有用,因为所有与错误有关的问题都是许可,所以这很有意义问题.因此您可以使用此命令并忽略那些权限问题:

although this solution is not the best and the safest solution exists, this worked for me and that make sense because all the problem we had with the errors is the permission problems. so you can use this command and ignore those permission problems :

sudo npm install expo-cli -g --unsafe-perm

这篇关于无法运行"npm install expo-cli --global"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆