ETC
[termux] code-server 설치 에러
1984
2022. 8. 13. 23:46
Command
yarn global add code-server
Error - 1
error code-server@4.5.1: The engine "node" is incompatible with this module. Expected version "16". Got "18.7.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
해결 방법 - 1
설치된 node js version이 높아 발생한 에러로, downglade 한다.
pkg delete nodejs
apt-get install yarn nodjs-lts=16.16.0.-1
Error -2
Error: sudo required (or change ownership, or define N_PREFIX)
해결방법 - 2
sudo 권한이 필요함
pkg install tsu
Error - 3
Failed to execute '/data/data/com.termux/files/usr/bin/node /data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/data/data/com.termux/files/home/.config/yarn/global/node_modules/argon2/lib/binding/napi-v3/argon2.node --module_name=argon2 --module_path=/data/data/com.termux/files/home/.config/yarn/global/node_modules/argon2/lib/binding/napi-v3 --napi_version=8 --node_abi_napi=napi --n
해결방법 - 3
pkg install binutils
728x90