Code Monkey home page Code Monkey logo

Comments (12)

silverwind avatar silverwind commented on July 17, 2024 1

@edwjusti added Android with v2.1.0.

from default-gateway.

dmbuga avatar dmbuga commented on July 17, 2024

Run into same issue today upon deployng on production server.

As far as I've noticed problem occures when you trying to install '[email protected]' 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 [email protected]: 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

from default-gateway.

silverwind avatar silverwind commented on July 17, 2024

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

from default-gateway.

karli-sjoberg avatar karli-sjoberg commented on July 17, 2024

from default-gateway.

silverwind avatar silverwind commented on July 17, 2024

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.

from default-gateway.

karli-sjoberg avatar karli-sjoberg commented on July 17, 2024

from default-gateway.

silverwind avatar silverwind commented on July 17, 2024

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.

from default-gateway.

karli-sjoberg avatar karli-sjoberg commented on July 17, 2024

from default-gateway.

edwjusti avatar edwjusti commented on July 17, 2024

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.

from default-gateway.

silverwind avatar silverwind commented on July 17, 2024

@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.

from default-gateway.

edwjusti avatar edwjusti commented on July 17, 2024

Everything is working fine now, thank you for the android addition ๐Ÿ˜€

from default-gateway.

silverwind avatar silverwind commented on July 17, 2024

FreeBSD is now supported as of v2.2.0.

from default-gateway.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.