You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed node in my local Laravel project. The folder node_modules is located inside the public folder. I can do node -v (16.v.0) and npm -v (7.19.0).
The command "PATH=$PATH:/usr/local/bin NODE_PATH='/Users/mooky/Code/test-project/public/node_modules/' node '/Users/mooky/Code/test-project/vendor/spatie/browsershot/src/../bin/browser.js' '{"url":"https:\/\/my-domain.com","action":"pdf","options":{"path":"certificates\/example.pdf","args":[],"viewport":{"width":800,"height":600}}}'" failed. Exit Code: 127(Command not found) Working directory: /Users/mooky/Code/test-project/public Output: ================ Error Output: ================ sh: node: command not found
Not sure how to fix this.
Running on macOS (Production server will be Ubuntu 20) with Laravel Valet and Homebrew. The domain my-domain.com from the code above was replaced with an actual, live domain (not example.com or anything).
Any help is much appreciated. I really need to get this running, as DomPDF is a pain in the a** when working with images and also needing to use Flexbox.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I installed node in my local Laravel project. The folder
node_modules
is located inside the public folder. I can donode -v
(16.v.0) andnpm -v
(7.19.0).When I try to use a simply command to test it
I get this error:
Not sure how to fix this.
Running on macOS (Production server will be Ubuntu 20) with Laravel Valet and Homebrew. The domain my-domain.com from the code above was replaced with an actual, live domain (not example.com or anything).
Any help is much appreciated. I really need to get this running, as DomPDF is a pain in the a** when working with images and also needing to use Flexbox.
Beta Was this translation helpful? Give feedback.
All reactions