部署时忽略fsevents依赖性

时间:2014-10-02 07:52:00

标签: node.js git heroku fsevents

我使用我的macbook开发了一个小的Node.JS应用程序。一切都很好,我将把它部署到Heroku。

git push heroku master命令退出并显示错误:

9045 info install fsevents@0.2.1
9046 verbose unsafe-perm in lifecycle true
9047 info fsevents@0.2.1 Failed to exec install script
9048 error fsevents@0.2.1 install: `node-gyp rebuild`
9048 error Exit status 1
9049 error Failed at the fsevents@0.2.1 install script.
9049 error This is most likely a problem with the fsevents package,
9049 error not with npm itself.
9049 error Tell the author that this fails on your system:
9049 error     node-gyp rebuild
9049 error You can get their info via:
9049 error     npm owner ls fsevents
9049 error There is likely additional logging output above.
9050 error System Linux 3.8.11-ec2
9051 error command "/tmp/build_531abeef-6dec-47ed-a19d-0a9181d01d8d/vendor/node/bin/node" "/tmp/build_531abeef-6dec-47ed-a19d-0a9181d01d8d/vendor/node/bin/npm" "rebuild"
9052 error cwd /tmp/build_531abeef-6dec-47ed-a19d-0a9181d01d8d
9053 error node -v v0.10.32
9054 error npm -v 1.4.28
9055 error code ELIFECYCLE
9056 verbose exit [ 1, true ]

Google是我的朋友,帮助我理解这个问题。

fsevents 是用于Mac OS-X FSEvents本机访问的NPM模块。

它已作为grunt-browserify依赖项安装在我的本地计算机上:

./node_modules/grunt-browserify/node_modules/watchify/node_modules/chokidar/node_modules/fsevents

Heroku(linux)当然不需要也不支持它。

  • 我怎样才能排除"这从我的部署到fsevents依赖 Heroku的?

1 个答案:

答案 0 :(得分:-1)

最后,我刚从部署中删除了node_modules。