laravel-browsershot icon indicating copy to clipboard operation
laravel-browsershot copied to clipboard

Problem in load in cpanel

Open sardarn opened this issue 5 years ago • 1 comments

Hi

my Co works in local normally.when i upload project in cpanel and run it, i get this eroor.what is the problem? node is running in my host.

The command "PATH=$PATH:/usr/local/bin NODE_PATH=npm root -g node '/home2/connectt/public_html/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"https://rahavard365.com/marketmap","action":"screenshot","options":{"type":"jpeg","path":"/home2/connectt/public_html/public/screens/12313.jpeg","args":[],"viewport":{"width":1024,"height":768},"fullPage":true}}'" failed. Exit Code: 127(Command not found) Working directory: /home2/connectt/public_html/public Output: ================ Error Output: ================ sh: npm: command not found sh: node: command not found

sardarn avatar Sep 22 '20 12:09 sardarn

Please make sure that you have Nodejs v7.6.0 or higher installed on your server.

rovertzxd avatar Sep 30 '20 17:09 rovertzxd