Skip to content
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

Unsupported platform FreeBSD #3

Closed
karli-sjoberg opened this issue Sep 13, 2017 · 12 comments
Closed

Unsupported platform FreeBSD #3

karli-sjoberg opened this issue Sep 13, 2017 · 12 comments

Comments

@karli-sjoberg
Copy link
Contributor

npm ERR! notsup Unsupported platform for default-gateway@2.0.2: wanted {"os":"darwin,linux,win32","arch":"any"} (current: {"os":"freebsd","arch":"x64"})
npm ERR! notsup Valid OS: darwin,linux,win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: freebsd
npm ERR! notsup Actual Arch: x64

A little funny seeing how it´s BSD licensed :)

/K

@dmbuga
Copy link

dmbuga commented Sep 14, 2017

Run into same issue today upon deployng on production server.

As far as I've noticed problem occures when you trying to install 'webpack-dev-server@2.4.4' via NPM.

npm ERR! FreeBSD 11.0-RELEASE-p1
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "webpack-dev-server"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for default-gateway@2.0.2: wanted {"os":"darwin,linux,win32","arch":"any"} (current: {"os":"freebsd","arch":"x64"})
npm ERR! notsup Valid OS: darwin,linux,win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: freebsd
npm ERR! notsup Actual Arch: x64

@silverwind
Copy link
Owner

Parsing routing tables is very OS-specific, so this is intentional right now, but I'll see about adding support for FreeBSD.

@karli-sjoberg
Copy link
Contributor Author

karli-sjoberg commented Sep 15, 2017 via email

@silverwind
Copy link
Owner

silverwind commented Sep 15, 2017

http://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html should get you started on the pull request workflow.

As for changes in this repository: I'd suggest you cp linux.js freebsd.js and start working on freebsd.js. After you're done, add freebsd here

if (["linux", "darwin", "win32"].includes(platform)) {
and in package.json. Also make sure that make test completes without error.

@karli-sjoberg
Copy link
Contributor Author

karli-sjoberg commented Sep 15, 2017 via email

@silverwind
Copy link
Owner

It just occured to me that you might have an easier time starting off from darwin.js because both macOS and FreeBSD have BSD roots.

@karli-sjoberg
Copy link
Contributor Author

karli-sjoberg commented Sep 15, 2017 via email

@edwjusti
Copy link

I am getting the same error here when trying to install webpack-dev-server on an android environment. The ip command is available on android, so it would run without any problem on android.

@silverwind
Copy link
Owner

silverwind commented Sep 16, 2017

@edwjusti do you know what os.platform returns on Android?

Nevermind, it's 'android'. I'll handle it the same as Linux, hope you can let me know if it worked.

silverwind added a commit that referenced this issue Sep 16, 2017
@silverwind
Copy link
Owner

@edwjusti added Android with v2.1.0.

@edwjusti
Copy link

Everything is working fine now, thank you for the android addition 😀

@silverwind
Copy link
Owner

FreeBSD is now supported as of v2.2.0.

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

No branches or pull requests

4 participants