I'm running into an issue when trying to deploy my Rails 6 app with Vue on Heroku. The error I'm getting is as follows:
[4/4] Building fresh packages...
error /tmp/build_c242c7d78580af478535f5a344ff701e/node_modules/fibers: Command failed.
Exit code: 127
Command: node build.js || nodejs build.js
Arguments:
Directory: /tmp/build_c242c7d78580af478535f5a344ff701e/node_modules/fibers
Output:
node-gyp not found! Please ensure node-gyp is in your PATH--
Try running: `sudo npm install -g node-gyp`
/bin/sh: 1: nodejs: not found
spawn node-gyp ENOENT
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Precompiling assets failed.
Push rejected, failed to compile Ruby app.
Push failed
I've searched everywhere for a solution, but it doesn't seem like anyone else has encountered this problem. Do you have any ideas on how to address this? Thanks