Comments (9)
The issue seems to be coming from here:
if (process.args?._?.length === 1 && !process.args._[0].includes('zxb.mjs')) {
on the install scripts.
I am unsure what this guard is doing , but by commenting it out I successfully installed zxb
.
I'd be happy to put a PR for this, but maybe someone has a better insight in that guard condition?
from zxb.
Hey! Thanks for letting me know.
I haven't checked what's going on there yet. zx seems to have switched how argv
is handled a couple of times during the past few versions.
from zxb.
from zxb.
Thanks!
Fixed the install issue: a58ca0f
What OS are you running? zxb lse
works on my mac, but doesn't work on Ubuntu, so I think something might be up there.
from zxb.
from zxb.
Oh, Ubuntu isn't to blame, after all, reproduced on mac as well. Looking...
from zxb.
It seems to be around line 63 on the main file.
I'm just on my phone right now so hard to debug, you have a condition:
if(input && !action)
Probably another issue with the indexing of argv?
from zxb.
Yes I can't test but I'd say input
returns undefined
because of the argv indexing.. it's looking at index 1
, not 0
.
But again, from my mobile so this is untested!
from zxb.
Yeah, the indexes were off because zx changed that in v7, and I got confused along the way with my messy dev environment (I've got the git project symlinked and after testing updates forgot to re-link)
I've updated zxb to v1.0.5 now. zxb update
should do the trick, if it doesn't, just run the install script again.
from zxb.
Related Issues (3)
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 zxb.