我有一个刚开发完成的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.
我已经多次重新运行了命令,但仍然遇到相同的错误。