Comments (3)
I encountered the same issue as I was trying to setup semantic-release-cli (running npx semantic-release-cli setup
, you probably are running a different command though).
Environment
Mac => ssh => ubuntu (headless)
My server (headless)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
I am using a mac to control the server.
Model Name: MacBook Air
Model Identifier: MacBookAir10,1
Chip: Apple M1
Things I tried (didn't work)
- install
xsel
on the ubuntu like it told me - got out of tmux on the ubuntu, then run
npx semantic-release-cli setup
- reconnecting to ubuntu by
ssh -X ...
Solution
Then I did more googling and found an article saying to install X11(XQuartz) on Mac. So I did it like this.
- downloaded and installed X11(XQuartz)
- logged out & logged in (on Mac)
- ran XQuartz (opens a terminal, but I used my own terminal - iTerm2 to do the next step)
- then did
ssh -X ...
- then ran the command I had this problem with
- worked!
from clipboardy.
Some possible workarounds:
https://unix.stackexchange.com/questions/566081/xsel-cant-open-display-null
https://stackoverflow.com/questions/18695934/unable-to-copy-ssh-id-rsa-pub
Would be nice if we could handle this case in Clipboardy. If not, we should at least improve the error message.
from clipboardy.
encountering same issue but there should be a command line for a solution to this isuue
from clipboardy.
Related Issues (20)
- Error [ERR_REQUIRE_ESM]: Must use import to load ES Module HOT 3
- Module not found: Error: Can't resolve 'node:process' in 'node_modules/clipboardy' HOT 1
- UncaughtSyntaxError: Unexpected token import HOT 1
- Loading with --experimental-modules HOT 2
- Doesn't works when I launch my app to Heroku HOT 3
- clipboardy do not support require ? HOT 1
- Error [ERR_REQUIRE_ESM]: require() of ES Module E:\~\node_modules\clipboardy\index.js not supported. HOT 3
- Cannot load module in JEST HOT 1
- windows wsl2 is slow with windows fallback binaries HOT 2
- Doesn't work with typescript HOT 4
- Having this error when run in Discord.JS Bot HOT 1
- i tried running clipboard thru heroku and this is the error i encounter HOT 1
- Powershell on Windows HOT 1
- Both xsel and fallback failed HOT 2
- Use Clipboard for Linux, Windows, macOS, and *BSD HOT 2
- Npmjs.org and GitHub 2.3.0 release packages checksum differs HOT 2
- Browser support in http (non-secure context) HOT 2
- Paste images ?
- not work iphone safari HOT 2
- Does not work in WSL
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 clipboardy.