【发布时间】:2020-12-18 02:42:40
【问题描述】:
我有一个刚刚构建的 Rails 6 应用程序。
但是,当我尝试使用以下命令从命令行部署到 Heroku 时:
git push heroku master
经过一段时间后我得到以下错误:
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.1: The platform "linux" is incompatible with this module.
info "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
$ npm run build
/bin/sh: 1: npm: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
我已经重新运行了几次命令,但我仍然得到同样的错误。
【问题讨论】:
标签: ruby-on-rails heroku npm yarnpkg