首页 > 解决方案 > 如何在 termux 中更新 Node.js

问题描述

我正在尝试在 termux 中将旧的 Node.js 版本 14.15.4 更新到版本 16.6.1;我用过n, navenvm但它们每个都产生了一个错误。我尝试使用npm install -g node 此命令也产生了错误:

npm install -g node

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/node-android-arm64 - Not found
npm ERR! 404
npm ERR! 404  'node-android-arm64@16.6.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

有什么方法可以在 termux 上更新 Node.js?

标签: androidnode.jsnpm-installtermux

解决方案


推荐阅读