Skip to content

PDF Creation Error: spawn /root/pando-app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT #703

@achyut1901

Description

@achyut1901

I am trying to use node-html-pdf on linux/arm64 combination where I went into phantom-js prebuilt package and edited the download URL to download extract file for which supports linux-arm-64
refer this link: https://github.com/JerryFu-fyy/phantomjs-2.1.1-linux-arm
I am getting the below error
PDF Creation Error: spawn /root/pando-app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

I ran node install.js inside node_modules of phantomjs module
getting below error
Error verifying phantomjs, continuing Error: spawn /root/app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn /root/app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs', path: '/root/app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs', spawnargs: [ '--version' ], cmd: '/root/app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs --version' }

can anyone help me in this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions