首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为什么反应-本地人不工作,ubuntu 20.04

为什么反应-本地人不工作,ubuntu 20.04
EN

Stack Overflow用户
提问于 2020-06-17 15:56:36
回答 1查看 910关注 0票数 1

当我尝试用npm安装时,我得到了下面的控制台语句

代码语言:javascript
运行
AI代码解释
复制
 guilherme@guilherme-Aspire-A515-52G:~$  npm install -g react-native-cli  npm WARN checkPermissions Missing write access to /usr/local/lib npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib' npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib'] npm ERR!   stack: npm ERR! 'Error: EACCES: permission denied, access \'/usr/local/lib\'', npm ERR!   errno: -13, npm ERR!   code: 'EACCES', npm ERR!   syscall: 'access', npm ERR!   path: '/usr/local/lib' } npm ERR!  npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR!  npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR!     /home/guilherme/.npm/_logs/2020-06-17T23_39_26_149Z-debug.log guilherme@guilherme-Aspire-A515-52G:~$ ^C guilherme@guilherme-Aspire-A515-52G:~$

所以我试着用yarn工作,但不是100%,因为,这一次我写

代码语言:javascript
运行
AI代码解释
复制
react-native init myProject 

我犯了一个错误,比如:

没有找到

返回命令!

如有任何帮助,我们将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2020-06-17 18:45:05

欧洲联盟a cli do expo,e atéagora ta me servindo bem,da uma olhada na documenta o,ébem simples https://expo.io/learn

Instala a o expo cli:

代码语言:javascript
运行
AI代码解释
复制
npm install expo-cli --global

Cria um projeto:

代码语言:javascript
运行
AI代码解释
复制
expo init nomeDoSeuApp

意大利通心粉:

代码语言:javascript
运行
AI代码解释
复制
cd nomeDoSeuApp

开始提供服务:

代码语言:javascript
运行
AI代码解释
复制
expo start 

Se提取剂usando um模拟人android,depois que aparecer o qr代码无终端da um a que ele ele inicia o app no seu模拟程序

我正在使用世博会的https://expo.io/learn,它为我服务得很好,请看一下Docs。

首先,在全球范围内安装:

代码语言:javascript
运行
AI代码解释
复制
npm install expo-cli --global

创建一个项目:

代码语言:javascript
运行
AI代码解释
复制
expo init nameOfYourApp

进入文件夹:

代码语言:javascript
运行
AI代码解释
复制
cd nameOfYourApp

启动服务器:

代码语言:javascript
运行
AI代码解释
复制
expo start 

如果您使用的是安卓模拟器,在终端上显示qr代码后输入a,应用程序将在模拟器上自动启动。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62440208

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档