我用我的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 ]谷歌是我的朋友,帮助我理解问题。
FSEvents 是一个NPM模块,用于对Mac的本地访问.
它已经安装在我的本地机器上,作为一个咕噜-褐化依赖:
./node_modules/grunt-browserify/node_modules/watchify/node_modules/chokidar/node_modules/fsevents当然,Heroku (linux)不需要也不支持它。
发布于 2014-12-03 10:22:51
最后,我刚刚从部署中删除了node_modules。
https://stackoverflow.com/questions/26156452
复制相似问题