You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've installed zx, and tried to do some simple scripts.
I get error, but without enough details.
I really would like to get more details like line number and column number, etc,
but didnt find how, is it possible ?
10x.
Example
Next code:
#!/usr/bin/env zx
$.verbose = true
function is_dnf_installed(name) {
let test1 = await $`sudo dnf list installed | grep ${name}`
await $`echo ${test1}.`
return true;
}
let date = await $`date`
await $`echo Current date is ${date}.`
let test = await $`ls | grep 23`
await $`echo ${test}.`
Give following error (too generic in my opinion)
SyntaxError: Unexpected reserved word
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14)
at async link (node:internal/modules/esm/module_job:68:21)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I've installed zx, and tried to do some simple scripts.
I get error, but without enough details.
I really would like to get more details like line number and column number, etc,
but didnt find how, is it possible ?
10x.
Example
Next code:
Give following error (too generic in my opinion)
Beta Was this translation helpful? Give feedback.
All reactions