首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在termux中的android 10上运行react原生程序

如何在termux中的android 10上运行react原生程序
EN

Stack Overflow用户
提问于 2021-03-20 17:55:49
回答 3查看 627关注 0票数 0

因此,我正在尝试termux。

我打开termux,导航到程序文件夹,然后安装npm。这是输出:

代码语言:javascript
运行
复制
$ npm install
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! dest /storage/emulated/0/lightBag_ExpoVersion2/node_modules/.bin/parser
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/storage/emulated/0/lightBag_ExpoVersion2/node_modules/.bin/parser'
npm ERR!  [Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/storage/emulated/0/lightBag_ExpoVersion2/node_modules/.bin/parser'] {
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../@babel/parser/bin/babel-parser.js',
npm ERR!   dest: '/storage/emulated/0/lightBag_ExpoVersion2/node_modules/.bin/parser'
npm ERR! }
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!     /data/data/com.termux/files/home/.npm/_logs/2021-03-20T09_47_18_096Z-debug.log
EN

回答 3

Stack Overflow用户

发布于 2021-03-21 00:16:06

我想是npm install --no-bin-link

票数 1
EN

Stack Overflow用户

发布于 2021-04-23 08:35:26

您不能在内部存储中创建符号链接。您有三个选项:1使用--no-bin-link选项。它在大多数情况下都是有效的。2将您的项目移动到termux data文件夹。在这里,termux有更多的权限,如symlink,chmod等3根你的手机,并给予termux超级用户权限。但这将是一个完全的杀伤力。我不推荐这样做。

票数 1
EN

Stack Overflow用户

发布于 2021-03-20 17:59:05

您可能有权限打开终端并尝试此命令

sudo npm install -g eslint

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

https://stackoverflow.com/questions/66720214

复制
相关文章

相似问题

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