我想将我的网站部署到Heroku,但是我遇到了以下错误:
error fsevents@2.0.7: The platform "linux" is incompatible with this module.
error Found incompatible module.
我已经尝试升级yarn和node,但没有帮助。我使用的是macOS Mojave v 10.14.5,而我不明白为什么这里会有linux。
remote: -----> Installing binaries
remote: engines.node (package.json): 10.15.3
remote: engines.npm (package.json): unspecified (use default)
remote: engines.yarn (package.json): unspecified (use default)
remote:
remote: Resolving node version 10.15.3...
remote: Downloading and installing node 10.15.3...
remote: Using default npm version: 6.4.1
remote: Resolving yarn version 1.x...
remote: Downloading and installing yarn (1.17.3)...
remote: Installed yarn 1.17.3
remote:
remote: -----> Installing dependencies
remote: Installing node modules (yarn.lock)
remote: yarn install v1.17.3
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
error fsevents@2.0.7: The platform "linux" is incompatible with this module.
remote: error Found incompatible module.