This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Nodejs deta-micros Problem on installing dependency on deploy #623
Unanswered
Pabluskagamo
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys i have a problem on deploying my api. There is a module that is not getting installed on deploy because this module downloads a tar file from a git reposity but when it tries to unzip it fails because tar is not a valid command in the micro. I think it is because tar is not installed in the machine. Im getting the following error:
$ deta deploy
Deploying...
Successfully deployed changes
Updating dependencies...
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
Received 22866K total.
Extracting tar contents (via spawned process)
Error extracting archive
Phantom installation failed Error: spawn tar ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn tar',
path: 'tar',
spawnargs: [ 'jxf', '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2' ],
cmd: 'tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2'
} Error: spawn tar ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
I dont know if there is a different way to install this module. I hope you can help me.
Thank you for your atention.
Beta Was this translation helpful? Give feedback.
All reactions