Skip to content

update Termux docs #1730

Closed
Closed

Description

@871690991

The new version can't run, DEP can't install incompatible system, code package can't run, can't create / usr / local / bin directory, I don't have root permission, I hope the author can change the code package directory to the current user's home directory.
新版的无法运行,dep无法安装不兼容我的系统,code 包无法运行无法创建/usr/local/bin目录 我没有root权限,希望作者能把code包目录改为当前用户家目录.
I'm crazy.

$ ./code-server
./code-server: 20: exec: /data/data/com.termux/files/home/code-server-3.3.1-linux-arm64/bin/../lib/node: not found

#1685
$ mkdir -p /usr/local/bin/
mkdir: cannot create directory ‘/usr’: Read-only file system

$ dpkg -i code-server_3.3.1_arm64.deb
dpkg: error processing archive code-server_3.3.1_arm64.deb (--install):
package architecture (arm64) does not match system (aarch64)
Errors were encountered while processing:
code-server_3.3.1_arm64.deb

Activity

  1. 871690991 commented on May 27, 2020

    @871690991
    Author

    Version: code-server_3.3.1_arm64.deb code-server-3.3.1-linux-arm64.tar.gz
    OS: aarch64

  2. nhooyr commented on May 27, 2020

    @nhooyr
    Contributor

    What does dpkg --print-architecture show?

  3. nhooyr commented on May 27, 2020

    @nhooyr
    Contributor

    Also, please provide your OS version, i.e debian/ubuntu/centOS/macOS/Windows etc.

  4. nhooyr commented on May 27, 2020

    @nhooyr
    Contributor
    • Local OS:
    • Remote OS:
    • Remote Architecture:
    • code-server --version:
  5. nhooyr commented on May 28, 2020

    @nhooyr
    Contributor

    Try using our auto install script.

    See https://github.com/cdr/code-server#getting-started

  6. 871690991 commented on May 28, 2020

    @871690991
    Author

    Also, please provide your OS version, i.e debian/ubuntu/centOS/macOS/Windows etc.

    My operating system is termux on Android

  7. 871690991 commented on May 28, 2020

    @871690991
    Author

    Try using our auto install script.

    See https://github.com/cdr/code-server#getting-started

    Can the next version be compatible with termux?

  8. nhooyr commented on May 28, 2020

    @nhooyr
    Contributor

    No idea, don't know what termux or what's causing this issue.

  9. 871690991 commented on May 28, 2020

    @871690991
    Author

    No idea, don't know what termux or what's causing this issue.

    The old version of termux can run directly, but the new version cannot. Do you have an Android phone to download a termux,you open http://termux.com

  10. 871690991 commented on May 28, 2020

    @871690991
    Author

    No idea, don't know what termux or what's causing this issue.

    Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.

  11. 871690991 commented on May 28, 2020

    @871690991
    Author

    No idea, don't know what termux or what's causing this issue.

    Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.

    Some Android phones are connected to the display, such as Samsung, Huawei and smartisan phones, to realize Android programming and development

  12. code-asher commented on May 28, 2020

    @code-asher
    Member

    Here's a summary of the issues I ran into trying this out. My initial post is below the line.

    • There's a linker problem with the bundled Node (incorrect path).
    • There's a libstdc++.so error with spdlog if you try running with your own Node. (This might be fixed soon?) Already fixed as long as you use the bundled script, for example editing it to use your own Node for now
    • npm and yarn both result in Could not locate the bindings file with spdlog (was hoping this would work around the missing libraries)
    • Termux has a custom install path that the deb doesn't take into account.

    Huh yeah that's interesting, the deb won't install because arm64 doesn't match aarch64? I thought they were the same thing?

    I was able to get around that with:

    $ dpkg --add-architecture arm64
    

    However this still fails because it's trying to install to /usr. There is a PREFIX environment variable although it's one level too deep:

    $ dpkg --inst-dir $PREFIX/.. -i code-server_3.3.1_arm64.deb
    

    I'm not sure if we can fix this on our end; I'm not familiar enough with either termux or dpkg. Maybe there is some system default set somewhere that we can inherit or maybe debs have to be specially packaged for Termux to account for the path difference or maybe there's some other way to detect the right path like using that PREFIX environment variable if it exists.

    Unfortunately running code-server still doesn't work at this point because it's trying to execute /usr/lib/code-server/bin/code-server. I tried running $PREFIX/lib/code-server/bin/code-server directly but node exits with no such file or directory. I think what it really means is there is some kind of missing library because the file does exist.

    So I installed Node:

    $ pkg install nodejs
    $ node "$PREFIX/lib/code-server"
    

    And it almost works! But it errors with libstdc++.so.6 not found when loading the spdlog module.

    Then I tried out the npm module:

    npm -g install code-server
    

    But now I get Could not locate the bindings file for spdlog after running code-server and logging in. I don't know what's causing this one.

    Going back to the no such file error:

    $ file "$PREFIX/lib/code-server/lib/node"
    /data/data/com.termux/files/usr/lib/code-server/lib/node: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=8de174bf29b02b0e727ca5cd7c4ede9ef35bb8cc, with debug_info, not stripped
    

    Is it because /lib/ld-linux-aarch64.so.1 doesn't exist, maybe? Here's what I get for git:

    $ file $(readlink -f $(which git))
    /data/data/com.termux/files/usr/libexec/git-core/git: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, stripped
    

    So how about:

    $ pkg install patchelf
    $ patchelf --set-interpreter /system/bin/linker64 $PREFIX/lib/code-server/lib/node
    

    Unfortunately this results in:

    error: Android 5.0 and later only support position-independent executables (-fPIE).
    
  13. code-asher commented on May 28, 2020

    @code-asher
    Member

    One other summary item:

    • The entry script doesn't work if the deb is installed to a custom location.
  14. changed the title [-]/lib/node: not found Major issues, I'm crazy[/-] [+]Unable to run on Android using Termux[/+] on May 28, 2020
  15. 23 remaining items

  16. chakibchemso commented on Oct 12, 2020

    @chakibchemso

    This can answer everything
    https://github.com/vhqtvn/VHEditor-Android
    It's an app with built in termux and vscs
    And working perfectly except the c# extension didn't detect the arch of my device
    Anyway the editor is working

  17. izewang commented on Oct 23, 2020

    @izewang

    Here is what I got with the 'yarn' method in a fresh Termux environment. The web page shows 500 Error.

    Error: Cannot find module 'semver-umd'
    Require stack:
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
        at Function.Module._load (internal/modules/cjs/loader.js:725:27)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at t.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:749)
        at e.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
        at i (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:839)
        at Object.errorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:963)
        at e.triggerErrorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
        at /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
        at ReadFileContext.callback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:221)
        at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
      ],
      phase: 'loading',
      moduleId: 'semver-umd',
      neededBy: [
        'vs/platform/extensionManagement/node/extensionDownloader',
        'vs/workbench/services/extensions/node/extensionPoints',
        'vs/platform/extensionManagement/node/extensionsScanner',
        'vs/platform/extensionManagement/node/extensionManagementService'
      ]
    }
    Error: Cannot find module 'applicationinsights'
    Require stack:
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
        at Function.Module._load (internal/modules/cjs/loader.js:725:27)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at t.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:749)
        at e.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
        at i (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:839)
        at Object.errorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:963)
        at e.triggerErrorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
        at /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
        at ReadFileContext.callback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:221)
        at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
      ],
      phase: 'loading',
      moduleId: 'applicationinsights',
      neededBy: [ 'vs/platform/telemetry/node/appInsightsAppender' ]
    }
    Error: Cannot find module '@coder/node-browser'
    Require stack:
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
        at Function.Module._load (internal/modules/cjs/loader.js:725:27)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at t.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:749)
        at e.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
        at i (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:839)
        at Object.errorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:963)
        at e.triggerErrorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
        at /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
        at ReadFileContext.callback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:221)
        at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
      ],
      phase: 'loading',
      moduleId: '@coder/node-browser',
      neededBy: [ 'vs/server/node/channel' ]
    }
    Error: Cannot find module 'yauzl'
    Require stack:
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
        at Function.Module._load (internal/modules/cjs/loader.js:725:27)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at t.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:749)
        at e.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
        at i (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:839)
        at Object.errorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:963)
        at e.triggerErrorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
        at /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
        at ReadFileContext.callback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:221)
        at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
      ],
      phase: 'loading',
      moduleId: 'yauzl',
      neededBy: [ 'vs/base/node/zip' ]
    }
    Error: Cannot find module 'yazl'
    Require stack:
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
    - /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
        at Function.Module._load (internal/modules/cjs/loader.js:725:27)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at t.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:749)
        at e.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
        at i (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:839)
        at Object.errorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:963)
        at e.triggerErrorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
        at /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
        at ReadFileContext.callback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:221)
        at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
        '/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
      ],
      phase: 'loading',
      moduleId: 'yazl',
      neededBy: [ 'vs/base/node/zip' ]
    }
    
    

    If I installed the missing modules by "yarn global add semver-umd applicationinsights @coder/node-browser yauzl yazl spdlog"
    I dont' get any error, but the web page is blank.

    Here is the -vvv log

    [server] storing proxy {"proxyId":"child_process"}
    [server] storing proxy {"proxyId":"fs"}
    [server] storing proxy {"proxyId":"net"}
    [2020-10-23T21:29:48.795Z] debug got message from vs code {"message":{"type":"options","id":"oWmpI2NSmgckZvNqQHzoppvG","options":{"workbenchWebConfiguration":{"folderUri":{"$mid":1,"path":"/home","scheme":"vscode-remote","authority":"192.168.0.109:8000"},"remoteAuthority":"192.168.0.109:8000","logLevel":0,"workspaceProvider":{"payload":[["userDataPath","/data/data/com.termux/files/home/.local/share/code-server"],["enableProposedApi","[]"]]}},"remoteUserDataUri":{"$mid":1,"path":"/data/data/com.termux/files/home/.local/share/code-server","scheme":"vscode-remote","authority":"192.168.0.109:8000"},"productConfiguration":{"nameShort":"Code - OSS","nameLong":"Code - OSS","applicationName":"code-oss","dataFolderName":".vscode-oss","win32MutexName":"vscodeoss","licenseName":"MIT","licenseUrl":"https://github.com/Microsoft/vscode/blob/master/LICENSE.txt","win32DirName":"Microsoft Code OSS","win32NameVersion":"Microsoft Code OSS","win32RegValueName":"CodeOSS","win32AppId":"{{E34003BB-9E10-4501-8C11-BE3FAA83F23F}","win32x64AppId":"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}","win32arm64AppId":"{{D1ACE434-89C5-48D1-88D3-E2991DF85475}","win32UserAppId":"{{C6065F05-9603-4FC4-8101-B9781A25D88E}","win32x64UserAppId":"{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}","win32arm64UserAppId":"{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}","win32AppUserModelId":"Microsoft.CodeOSS","win32ShellNameShort":"C&ode - OSS","darwinBundleIdentifier":"com.visualstudio.code.oss","linuxIconName":"com.visualstudio.code.oss","licenseFileName":"LICENSE.txt","reportIssueUrl":"https://github.com/cdr/code-server/issues/new","urlProtocol":"code-oss","extensionAllowedProposedApi":["ms-vscode.vscode-js-profile-flame","ms-vscode.vscode-js-profile-table","ms-vscode.references-view","ms-vscode.github-browser"],"builtInExtensions":[{"name":"ms-vscode.node-debug","version":"1.44.11","repo":"https://github.com/Microsoft/vscode-node-debug","metadata":{"id":"b6ded8fb-a0a0-4c1c-acbd-ab2a3bc995a6","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.node-debug2","version":"1.42.5","repo":"https://github.com/Microsoft/vscode-node-debug2","metadata":{"id":"36d19e17-7569-4841-a001-947eb18602b2","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.references-view","version":"0.0.62","repo":"https://github.com/Microsoft/vscode-reference-view","metadata":{"id":"dc489f46-520d-4556-ae85-1f9eab3c412d","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.js-debug-companion","version":"1.0.7","repo":"https://github.com/microsoft/vscode-js-debug-companion","metadata":{"id":"99cb0b7f-7354-4278-b8da-6cc79972169d","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.js-debug","version":"1.49.8","repo":"https://github.com/Microsoft/vscode-js-debug","metadata":{"id":"25629058-ddac-4e17-abba-74678e126c5d","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.vscode-js-profile-table","version":"0.0.6","repo":"https://github.com/Microsoft/vscode-js-debug","metadata":{"id":"7e52b41b-71ad-457b-ab7e-0620f1fc4feb","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}}],"webBuiltInExtensions":[{"name":"ms-vscode.github-browser","version":"0.0.8","repo":"https://github.com/Microsoft/vscode-github-browser","metadata":{"id":"c1bcff4b-4ecb-466e-b8f6-b02788b5fb5a","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}}],"commit":"a4a03c14922ccaec2a9ff8d1b7b2af8522a4214d","date":"2020-10-12T07:26:49Z","version":"1.49.3","extensionsGallery":{"serviceUrl":"https://extensions.coder.com/api","itemUrl":"","controlUrl":"","recommendationsUrl":""}},"nlsConfiguration":{"locale":"en","availableLanguages":{}},"commit":"a4a03c14922ccaec2a9ff8d1b7b2af8522a4214d"}}}
    [2020-10-23T21:29:49.195Z] debug Request error {"url":"/static/a4a03c14922ccaec2a9ff8d1b7b2af8522a4214d/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/dist/pages/pages/vscode.js.map","code":404,"error":{"errno":-2,"code":"ENOENT","syscall":"open","path":"/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/dist/pages/pages/vscode.js.map"}}
    [2020-10-23T21:29:50.383Z] debug Request error {"url":"/static/a4a03c14922ccaec2a9ff8d1b7b2af8522a4214d/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/semver-umd/lib/semver-umd.js","code":404,"error":{"errno":-2,"code":"ENOENT","syscall":"open","path":"/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/semver-umd/lib/semver-umd.js"}}
    

    It seems the folder
    "home/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules" is missing. What shall I do now? I tried to npm install or yarn install inside /lib/vscode, but get more errors:
    "error /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/keytar: Command failed." "No package 'libsecret-1' found"

  18. izewang commented on Oct 23, 2020

    @izewang

    I finally got it worked.
    Here's what I did after the previous post:

    pkg install git
    yarn global remove code-server
    yarn global add code-server
    
  19. yozman commented on Nov 4, 2020

    @yozman

    hey guys, there is whole lots of things u should do for use cdr on termux

    pkg install nodejs git python build-essential pkg-config libx11
    npm i -g yarn
    yarn global add code-server

    make sure your internet could open https://raw.githubusercontent.com/googleinterns/tsec/master/package.json correctly

    if not (somewhere like china) u can use https://github.com/x-falcon/Virtual-Hosts for binding custom host like

    199.232.68.133 .githubusercontent.com
    

    after this, u can enjoy ur cdr on ur phone.

    but there is still an issue on it with search feature

    when use cdr/code-server with termux on android.
    search feature is not work because of missing bin/rg


    update for fix search feature

    1. install ripgrep use pkg
    pkg install ripgrep
    1. make a soft link use ln -s

    run this command in ur code-server directory

    ln -s $PREFIX/bin/rg ./lib/vscode/node_modules/vscode-ripgrep/bin/rg
  20. tranqy commented on Dec 29, 2020

    @tranqy

    Thanks @yozman , that worked for me. I had tried a few other ways but was able to pkg uninstall yarn, reinstall yarn then reinstall code-server.

  21. added
    docsDocumentation related
    os-androidAndroid/Termux related
    and removed
    waiting-for-infoWaiting for more information from submitter
    on Jan 18, 2021
  22. mahdimataji commented on Jan 26, 2021

    @mahdimataji

    Screenshot_۲۰۲۱۰۱۲۷-۰۲۲۰۰۰_Termux.jpg
    Hello Please solve this problem for me

  23. n3rdw1z4rd commented on Mar 16, 2021

    @n3rdw1z4rd

    hey guys, there is whole lots of things u should do for use cdr on termux

    pkg install nodejs git python build-essential pkg-config libx11
    npm i -g yarn
    yarn global add code-server

    make sure your internet could open https://raw.githubusercontent.com/googleinterns/tsec/master/package.json correctly

    if not (somewhere like china) u can use https://github.com/x-falcon/Virtual-Hosts for binding custom host like

    199.232.68.133 .githubusercontent.com
    

    after this, u can enjoy ur cdr on ur phone.

    but there is still an issue on it with search feature

    when use cdr/code-server with termux on android.
    search feature is not work because of missing bin/rg

    update for fix search feature

    1. install ripgrep use pkg
    pkg install ripgrep
    1. make a soft link use ln -s

    run this command in ur code-server directory

    ln -s $PREFIX/bin/rg ./lib/vscode/node_modules/vscode-ripgrep/bin/rg

    This also worked for me, thank you!

  24. jsjoeio commented on Mar 16, 2021

    @jsjoeio
    Contributor

    Now that we have some official documentation for Termux, I think we should add this there.

    TODOs:

  25. changed the title [-]Unable to run on Android using Termux[/-] [+]update Termux docs[/+] on Mar 16, 2021
  26. added this to the v3.9.3 milestone on Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation relatedos-androidAndroid/Termux related

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions