-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Cloud Functions - EXDEV: cross-device link not permitted - v0.20.6 #1345
Comments
Hello, was this as a result of having just upgraded from sharp v0.20.5 to v0.20.6? |
yes, I had similar error even when I downgraded it to my local project to 0.20.5 |
Getting the same error! I actually got it before I updated to v0.20.6, but only today, so there must be a relation. |
Please can you run |
meanwhile I tried to use sudo npm install sharp and sudo npm install libvips , libvips was installed as /Users/myname/node_module but not sharp , it got somewhat this error while installing
and now when I use firebase deploy , it completely crash as
|
Started to happen for me as well (in Firebase environment):
|
@ovaris Thank you. The logic introduced by #1301 will probably have to change to use copy-and-unlink rather than just renaming to deal with device/partition boundaries. @amitbravo Avoid |
Thx @lovell for info. I will downgrade to v0.20.5 for now. |
@lovell should I remove /Users/myusername/node_module ? |
Also experiencing this issue bot on v0.20.5 and v0.20.6 . Logs: ⚠ functions[memberPayments(us-central1)]: Deployment error. Error: EXDEV: cross-device link not permitted, rename '/workspace/node_modules/sharp/30-libvips-8.6.1-linux-x64.tar.gz' -> '/builder/home/.npm/_libvips/libvips-8.6.1-linux-x64.tar.gz' npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: error: Functions deploy had errors. To continue deploying other features (such as database), run: |
@itaydressler make sure you have defined exact version in |
🤦🏼♂️ |
I have the same problem |
|
Thanks for all the examples, the underlying problem should be fixed by commit ece1112. I plan to publish this in v0.20.7 tomorrow unless any other problems with v0.20.6 arise in the meantime. For now, the workaround for users of both sharp and Google Cloud Functions is to pin sharp to v0.20.5. |
I am so glad this thread exists. :'D |
v0.20.7 is now available and it's worth upgrading as the caching in this new version should reduce re-installation times by ~5 seconds. If you've added a 👍 to this issue and have not already contributed to the survey, it's always great to learn more about what people are using sharp for if you're able to share details publicly - please see #35. |
npm ERR! Linux 4.4.0-133-generic
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "--global-style" "--production" "--fetch-retries=5" "--fetch-retry-factor=2" "--fetch-retry-mintimeout=1000" "install" "/workspace"
npm ERR! node v6.14.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install:
(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script '(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sharp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sharp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sharp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /workspace/npm-debug.log
Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
==============
I did brew upgrade npm , result = npm 10.9.0 already installed
Package.json
The text was updated successfully, but these errors were encountered: