Coder Social home page Coder Social logo

Comments (9)

cschweda avatar cschweda commented on June 21, 2024 2

Yep. Installed xclip -- and all is well:

cschweda@ubuntu:~$ sudo apt-get install xclip

Then:

cschweda@ubuntu:~$ serve

And everything works fine:

   ┌─────────────────────────────────────────────────┐
   │                                                 │
   │   Serving!                                      │
   │                                                 │
   │   - Local:            http://localhost:3000     │
   │   - On Your Network:  http://10.211.55.4:3000   │
   │                                                 │
   │   Copied local address to clipboard!            │
   │                                                 │
   └─────────────────────────────────────────────────┘



from serve.

DavidBruant avatar DavidBruant commented on June 21, 2024

I confirm this bug. I'm running Ubuntu without a VM.

$ serve -v
3.3.1

from serve.

DavidBruant avatar DavidBruant commented on June 21, 2024

I tried and had the same bug with
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

For some reason, npm start works on this project. No clue what's different beyond being used as an npm script.

from serve.

cschweda avatar cschweda commented on June 21, 2024

Yep -- this works when run via npm -- but not on the Ubuntu command line.

In package.json:

  "start": "serve ./dist --static",

Then:

cschweda@ubuntu$ npm run start

Works as expected. Server starts -- keeps running -- and pages are served fine.

However:

cschweda@ubuntu$ serve ./dist --static

Doesn't work. Simply goes right back to the command line.

cschweda@ubuntu$ serve -v
3.3.1

from serve.

jannisch avatar jannisch commented on June 21, 2024

I can confirm this issue on Void Linux with serve 3.3.1.

from serve.

disquisition avatar disquisition commented on June 21, 2024

Testing this out, it looked like the issue was that when on Linux and xclip isn't installed, the copy-paste package can raise a SIGPIPE when it attempts to copy to the clipboard. The reason there's no error is that the process seems to terminate before the error lister has a chance to fire.

(Still not sure why this isn't a problem when you run serve via $ npm run start...)

from serve.

cubodehelio avatar cubodehelio commented on June 21, 2024

serve -v
3.4.0

Stop working in Linux Mint 17.2 after update. It just get back to the console with no output at all.

from serve.

cschweda avatar cschweda commented on June 21, 2024

Did you try installing xclip as mentioned above?

sudo apt-get install xclip

from serve.

cubodehelio avatar cubodehelio commented on June 21, 2024

Thanks @cschweda yes, that solves the problem sorry.

from serve.

Related Issues (20)

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.