NPM and Node isnt detect, already get recognize in terminal
get this error message on laravel project, it's a print to pdf feature. Already build the project and tried npm -v and node -v just work properly. Thanks for any help
The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=`npm root -g` node '/home/anuger66/public_html/vendor/spatie/browsershot/src/../bin/browser.cjs' '{"url":"file:\/\/\/tmp\/1216135053-0274369001742975982\/index.html","action":"pdf","options":{"args":[],"viewport":{"width":800,"height":600},"displayHeaderFooter":false,"printBackground":true}}'" failed. Exit Code: 127(Command not found) Working directory: /home/anuger66/public_html/public Output: ================ Error Output: ================ sh: npm: command not found sh: node: command not found
-
Hey there! Does your server have the required packages installed for NodeJS to function? These are mentioned in our documentation at https://docs.cpanel.net/knowledge-base/web-services/how-to-install-a-node.js-application/ but they would be one of the NodeJS versions, Passenger, and mod_env. If those aren't present, you won't see npm available on the command line.
0
Please sign in to leave a comment.
Comments
1 comment