【发布时间】:2019-11-26 15:57:58
【问题描述】:
我想将我的网站部署到 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.
【问题讨论】:
-
我在同一个问题上卡了一个多月,然后我放弃了,我确实尝试了所有可能的方法,并在所有互联网上搜索了一个解决方案,但没有任何解决方案。所以我改成纱线
标签: node.js heroku npm yarnpkg mern