【发布时间】:2020-10-12 03:36:32
【问题描述】:
我正在尝试在 heroku 上使用 vue 应用程序部署 rails 6,但出现此错误:
[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
我试图到处寻找解决方案,但似乎没有其他人遇到过这个问题。知道如何解决这个问题吗?谢谢
【问题讨论】:
标签: javascript ruby-on-rails vue.js heroku yarnpkg