-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Bug]: npm install process is trying to install the Windows version of Kerberos on FreeBSD #6499
Comments
I had the same error. I somehow (not pretty!) managed to install code-server 4.18.0 it on FreeBSD (iocage jail):
Modify/add the following in kerberos/binding.gyp:
Modify/add the following in kerberos/src/kerberos_common.h:
I did not found another way than using a local npm registry with verdaccio to install this (upper) modified kerberos npm package: Modify/add the following (fake) in kerberos/package.json:
Executing verdaccio in another shell (screen): Meanwhile: Finally: Hope there will be a better solution (like https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256144) |
I tried this on a test machine with a fresh install of FreeBSD: Before the final stage, I had to do: To upgrade my production machine, I had to do Then I pointed npm at the registry on my test machine Installed code-server For both, I also applied the fix for terminal not working: and changed the npm registry back to the default |
If I understand correctly, this needs to be fixed upstream in the Kerberos package and is not something we can fix here, right? |
Thanks to your workarounds I managed to install it. Unrelated to the issue, but as someone not terribly familiar with js and the modern web stack in general, I must voice my utmost disdain for the most vile piece of package management software there is, that is npm. If keyboards were people, mine could sue me to oblivion for numerous charges of battery and domestic violence. |
Well said! 😆 Closing since it seems this is out of our hands. |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.18.0 (4.16.1 is the latest version that installs without errors)Steps to Reproduce
npm install -g code-server --unsafe-perm
Expected
It should install
Actual
It returns an error about being unable to find windows.h, which obviously it won't because we are in FreeBSD, not Windows.
Logs
The second log file it references doesn't exist.
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over a secure context?
Notes
This problem started in v4.17. 4.16.1 installs correctly.
The text was updated successfully, but these errors were encountered: