Comments (9)
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.
I confirm this bug. I'm running Ubuntu without a VM.
$ serve -v
3.3.1
from serve.
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.
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.
I can confirm this issue on Void Linux with serve 3.3.1.
from serve.
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.
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.
Did you try installing xclip as mentioned above?
sudo apt-get install xclip
from serve.
Thanks @cschweda yes, that solves the problem sorry.
from serve.
Related Issues (20)
- Remove xsel/clipboard functionality HOT 1
- CORS missing Access-Control-Allow-Methods
- Remove auto redirect
- Set server timezone to UTC
- Directory or file name with "#" or "?" does not work properly
- Do not serve hidden subfolders
- Restore silent mode HOT 2
- `npx serve` throws ENOENT error in [email protected] and newer HOT 1
- serve 14.2.1 CLI arguments issue http to https
- Testing local deployments for GitHub pages doesn't work since no `basePath` can be set HOT 6
- Add cleanUrls option to CLI interface
- IPV6 support
- Publish types for API with npm release
- Node.js 21: "[DEP0040] DeprecationWarning: The `punycode` module is deprecated." HOT 4
- serve didn't work in routing with react-router and vite in production HOT 1
- add --open to the CLI
- Anyway to run npx serve constantly? HOT 3
- `localhost:1234/foo/index.html.html` provokes a 404
- Add a file size limit to etag SHA calculations, fallback to "Last modified" when above this limit.
- Authentication is not available HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serve.