推到Heroku失败-错误fsevents@0.2.0安装:“节点-gyp重建”

时间:2021-05-14 20:41:43

I'm trying to push my app to Heroku but I keep getting this error, looks like an issue with node-gyp but no idea how to go about fixing it.

我试着把我的应用推到Heroku但是我一直得到这个错误,看起来像一个节点-gyp的问题但是不知道如何去修复它。

2854 verbose rebuildBundles fsevents@0.2.0
2855 verbose rebuildBundles [ 'nan' ]
2856 info install fsevents@0.2.0
2857 verbose unsafe-perm in lifecycle true
2858 info fsevents@0.2.0 Failed to exec install script
2859 error fsevents@0.2.0 install: `node-gyp rebuild`
2859 error Exit status 1
2860 error Failed at the fsevents@0.2.0 install script.
2860 error This is most likely a problem with the fsevents package,
2860 error not with npm itself.
2860 error Tell the author that this fails on your system:
2860 error     node-gyp rebuild
2860 error You can get their info via:
2860 error     npm owner ls fsevents
2860 error There is likely additional logging output above.
2861 error System Linux 3.8.11-ec2
2862 error command "/tmp/build_31f84d3a-9303-49cd-9596-cc7e984d9e18/vendor/node/bin/node" "/tmp/build_31f84d3a-9303-49cd-9596-cc7e984d9e18/vendor/node/bin/npm" "rebuild"
2863 error cwd /tmp/build_31f84d3a-9303-49cd-9596-cc7e984d9e18
2864 error node -v v0.10.28
2865 error npm -v 1.4.9
2866 error code ELIFECYCLE
2867 verbose exit [ 1, true ]

 !     Push rejected, failed to compile Node.js app

1 个解决方案

#1


0  

fsevents is a Mac OS X only extension and fails to install on Heroku (Linux). Try making the dependency optional using optionalDependencies in package.json.

fsevents是一个Mac OS X的扩展,并没有安装在Heroku (Linux)上。尝试在package.json中使用optionalDependencies来选择依赖项。

#1


0  

fsevents is a Mac OS X only extension and fails to install on Heroku (Linux). Try making the dependency optional using optionalDependencies in package.json.

fsevents是一个Mac OS X的扩展,并没有安装在Heroku (Linux)上。尝试在package.json中使用optionalDependencies来选择依赖项。