Android 上的 NPM 包管理器?

NPM Package Manager on Android?

所以我需要一个模块。使用 (https://registry.npmjs.org/) 的老把戏,我可以下载一个模块,但该模块有一个依赖模块,可以有更多的依赖模块。这很乏味。我不能使用 Termux(我有 android 6)有没有办法在 android 上安装 npm 包管理器?我已经拥有 Android 的 NodeJS 前端,但没有新模块我无法做新事情。任何带有 npm 的控制台都可以工作...或者下载 npm 模块和依赖节点的脚本也可以工作...

好吧,我在 termux 上为 android 6 开发了一种方式。该 apk 仍然可以在 Internet 上使用。然而,他们只是放弃了对它的支持 你可以尝试使用这个

https://archive.org/download/termux-repositories-legacy/termux-app-git-debug.apk

如果有帮助请告诉我

  • 下载https://registry.npmjs.org/npm/-/npm-8.5.0.tgz

  • 解压 npm-8.5.0.tgz 到本地目录,例如/storage/emulated/0/

  • 移动到 npm-8.5.0 并创建目录 cache

  • 现在开始NodeJS Frontend

  • 按 +,设置标题并浏览到空目录 the-package-dir 除了 node_modules 子目录.

  • 设置环境变量: npm_config_cache=/storage/emulated/0/npm-8.5.0/cache

  • js文件路径: /storage/emulated/0/npm-8.5.0/package/bin/npm-cli.js

  • js 文件 cli 选项: install --omit=dev --omit=optional --omit=peer --no-bin-links --ignore-scripts --no-audit --no-fund the-package

  • 保存并运行

现在 the-package 安装在目录 the-package-dir