Skip to content

Conversation

@zathras777
Copy link

With this small change code-server can be installed via npm on a FreeBSD amd64 install.

Copy link
Contributor

@nhooyr nhooyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing this up @zathras777

I'm not sure if this would work though. Wouldn't the standalone release be installed instead as the os is unrecognized but the architecture is likely amd64?

See https://github.com/cdr/code-server/blob/264abed82c49319dd813dfb2128401da69c7ce7e/install.sh#L161-L170

and https://github.com/cdr/code-server/blob/264abed82c49319dd813dfb2128401da69c7ce7e/install.sh#L193-L194

@zathras777
Copy link
Author

zathras777 commented Jun 12, 2020 via email

@nhooyr
Copy link
Contributor

nhooyr commented Jun 12, 2020

It may well be the standalone release that's installed, but with this
change the install script can at least be used to perform an install.
Without this patch the script simply does nothing :-(

As FreeBSD does not use glibc, the standalone release won't work.

I'll modify the install script to instead install via npm when an unrecognized unix system is detected instead of erring out.

@nhooyr
Copy link
Contributor

nhooyr commented Jun 12, 2020

See #1803

@nhooyr nhooyr closed this Jun 12, 2020
@nhooyr
Copy link
Contributor

nhooyr commented Jun 12, 2020

Thanks again for finding this @zathras777!

@zathras777
Copy link
Author

zathras777 commented Jun 12, 2020 via email

@nhooyr
Copy link
Contributor

nhooyr commented Jun 12, 2020

Hmm. That's confusing, we do have precompiled releases for amd64? What does uname -m give you?

@zathras777
Copy link
Author

zathras777 commented Jun 12, 2020 via email

@nhooyr
Copy link
Contributor

nhooyr commented Jun 13, 2020

Yea that makes sense. uname -m on linux always returns x86_64. I'll fix in #1803

@GogoFC
Copy link

GogoFC commented Dec 30, 2021

Couldn't install on FreeBSD.

With npm version 8 installed, gave error:

Please install npm or yarn to install code-server!
You will need at least node v12 and a few C dependencies.
See the docs https://coder.com/docs/code-server/latest/install#yarn-npm

After installing yarn, error:

[1/4] Resolving packages...
[2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "= 14". Got "16.10.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

Edit:

Well this installed it, now let's see what it can do :)

yarn add --ignore-engines install.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants