zcli push problem
Hello i need help about my problem, when i enter "zcli push" i have this error "last command has finished with error, identifier for communication with our support: [a token i deleted in discord]"
38 Replies
What cli version you have?
zcli version
and is there any pipeline log in the app?v1.0.26
try updating to latest (v1.0.42), which output pipeline logs directly into your terminal.. otherwise look at notifications in the app to find out what actually failed
with this command ?
irm https://zerops.io/zcli/install.ps1 | iex
Depends how you had it installed before and what is your platform (windows vs linux/mac).
If you installed it manually before and placed it in some custom directory, first remove the old binary and then run our install script.
i'm in windows and i've installed
If you call
where zcli
in command line, what path do you see?i have nothing lmao
but you can call
zcli version
and it returns the version?yes v1.0.26
did you, perchance, install it using
npm
?
Basically, if you installed it before using your install.ps1
or install.sh
, you can just run those again and it will install a new version.
If you installed it before manually and added it manually to PATH, our install script would install it, but windows could still use the manually installed version if its path is defined first in Path env variable.
and if you installed it with npm just do it again
sudo npm i -g @zerops/zcli
but im on windows not linux
without sudo then
essentially just do the same thing you did the first time you installed the CLI
If you have NPM you can check
%AppData%\npm
dir if zcli
binary is in there. If it is, then you installed it via NPM before.That's it, it works, thank you
just confirm with
zcli version
that it has the latest versionzcli version v1.0.42
good, now it should output logs as the app builds
but i have another problem in application
when i push a new time
that likely means the app was built, but failed to start, again, you should see detailed logs in the actual Zerops app (app.zerops.io)
if you can post a screenshot of the pipeline dialog it would be helpful
You need to look at the build logs in the app, your build commands have some problems.

that ?

yes, when you click "open build log" you can see what actually failed
so i have npm's problem right ?
if it's the same thing @Michal Saloň posted then it means your package.json doesn't even have
build
scriptYes, I posted the screen of the latest failed build pipeline for his stack.
alright, then it has nothing to do with Zerops or CLI
@nermal feel free to help, looks like another autobumper thing
okay it's in my code ?
yes
you are running
npm run build
command, but you package.json doesn't have build script defined at all
how would you build and run the app locally?
just do the same in zerops.yml buildCommands
and start
i enter buildsCommands data manually or i add in pach=kage .json ?
buildCommands are what Zerops executes to build your code, package.json's scripts are just aliases to normal commands, eg. you could do
or you could do
like that ?
in your case it seems like there's no need for build at all, so just remove npm run build from buildCommands altogether
okay thats work thank you very much now im going to fix my code
hmmmm
alright
we figured it out
the tutorial probably has unncesary npm run build
oh sorry for the late reply 😓