| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
yarn Installation works perfectly fine in mine👍🏻
|
Thanks for doing this! However, I think in #5010 we decided to only suggest npm due to some issues related to how it respects dependencies so I don't think we want to recommend this right now. Is that right? @code-asher |
Sorry, something went wrong.
|
We still need to fix a few things with npm (#5071) so for now yarn is the way to go. I think we could merge this then come back and update with npm once 5071 is merged (we will need to update all over the documentation anyway). |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for doing this!
Sorry, something went wrong.
|
You can run yarn fmt locally to fix this |
Sorry, something went wrong.
|
@mrfoxie and @jsjoeio: This is awesome, thanks for putting this together!!! Installation only works after a few necessary changes: Error: Expected version "16". Got "18.3.0" Fix: Install nodejs-lts package instead that is on v16.x! Error: /data/data/com.termux/files/usr/bin/sh: 1: ar: not found Fix: Install binutils package that contains ar Improvement: Proposed change to always update to the latest version: npm install -g npm@latest Proposed changes all together:Yarn Installation
pkg install -y \ build-essential \ binutils \ pkg-config \ python3 \ yarn \ nodejs-lts npm config set python python3 npm i -g npm@latest
yarn global add code-server code-server --auth none |
Sorry, something went wrong.
|
let me have a look at it |
Sorry, something went wrong.
Indeed, please try on a clean install of Termux (you can clear storage on Termux for this as well). |
Sorry, something went wrong.
thanks for pointing out the issue I'm looking into it just give me some time I will resolve it |
Sorry, something went wrong.
|
Happy to help! I take it back on my proposed improvement npm install -g npm@latest... that latest version is having all kinds of issues. Please disregard my proposed improvement on that 🤦♂️ |
Sorry, something went wrong.
I don't know why it is not working now. It was working first just give me some time I will come back to it as soon as possible and solve this issue. There must be some conflict between yarn nodejs nodejs-lts. I will find a better solution for it so that users can enjoy coding on android devices. If you can help me out figuring which version does code-server is using on Linux devices so that I can make it better steps for installation of code-server. |
Sorry, something went wrong.
It's literally just that code-server installer checks for Node 16.x at this point see: https://coder.com/docs/code-server/latest/npm#nodejs-version Incidentally, since Node and Termux recently switched from Node v14 to v16 for its LTS package, and code-server hadn't been updated to work with v16 yet, the whole set of instructions with PRoot were created so that NVM could be leveraged to install older Node versions for code-server alongside other more modern versions. Now that code-server supports Node v16 (#4286), it's cool that install via Yarn works well again! Something like the following should work from the terminal with Node 18 in the nodejs termux package but I think installing Node 16 via the nodejs-lts termux package or NVM is cleaner: FORCE_NODE_VERSION=18 yarn global add code-server |
Sorry, something went wrong.
I think there must be an issue while the installation of nodejs version because it installs v18 I will try to change the repository and then try to reinstall it again update: |
Sorry, something went wrong.
|
@thx2001r just give this a try its 100% working now if its working properly then I will close this pull request and open a new one Yarn Installation
termux-change-repoNow select Main Repository then change repo to Mirrors by Grimler Hosted on grimler.se.
pkg update
pkg upgrade -y
pkg install -y \
build-essential \
binutils \
pkg-config \
python3 \
yarn \
nodejs-lts
npm config set python python3
node -vyou will get node version v16.15.0
yarn global add code-server
code-server --auth none |
Sorry, something went wrong.
@code-asher don't merge this request I'm working on it it will take a little time may be 2 more days |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
yarn Installation works perfectly fine in mine👍🏻
Fixes #