Skip to content

Add FreeBSD support for an npm based install #1802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Add FreeBSD support for an npm based install #1802

wants to merge 1 commit into from

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