繁体   English   中英

当我尝试使用 termux 在 Android 上安装 firebase 时,我该如何解决这个问题?

[英]How can I fix this problem I'm getting when I try to install firebase on Android using termux?

尝试使用 termux 在我的 Android 上安装 firebase,但出现此错误。

~ $ npm install -g firebase
npm ERR! code EACCES
npm ERR! syscall link
npm ERR! path /data/data/com.termux/files/home/.npm/_cacache/tmp/23cecbe7
npm ERR! dest /data/data/com.termux/files/home/.npm/_cacache/content-v2/sha512/a4/3d/598b266209821efebe25e609909ad2caceed2b3f8a7b74a75da07d88c6a9c4801e9e995ddb32695d72d767abfce727bd9a38c3a5470372fffa175a6f9e93
npm ERR! errno EACCES
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 10121:10121 "/data/data/com.termux/files/home/.npm"

npm ERR! A complete log of this run can be found in:
npm ERR!     /data/data/com.termux/files/home/.npm/_logs/2022-11-11T18_19_15_987Z-debug-0.log
~ $

我已经安装了node js.Ok

我输入命令 npm install -g firebase 但我得到了同样的错误。

然后我尝试了 npm install -g firebase-tools。 我仍然遇到同样的错误。

您是否尝试过建议的命令sudo chown -R 10121:10121 "/data/data/com.termux/files/home/.npm" 另外,检查是否从 F-Droid 安装了 termux。 Google Play 版本现在没有更新。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM