question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Cloud Functions - EXDEV: cross-device link not permitted - v0.20.6

See original GitHub issue

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! sharp@0.20.6 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 sharp@0.20.6 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

{
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "serve": "firebase serve --only functions",
    "shell": "firebase functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "dependencies": {
    "@google-cloud/storage": "^1.7.0",
    "@google-cloud/vision": "^0.21.0",
    "firebase-admin": "^6.0.0",
    "firebase-functions": "^2.0.4",
    "lodash": "^4.17.10",
    "path": "^0.12.7",
    "request-promise": "^4.2.2",
    "sendotp": "^1.2.9",
    "sharp": "^0.20.6"
  },
  "private": true
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

15reactions
lovellcommented, Aug 20, 2018

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.

0reactions
lovellcommented, Aug 21, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does the "EXDEV: cross-device link not permitted" error ...
It sounds like you're trying to rename a file across "device" (partition) boundaries. Say that /tmp is a different partition than / ....
Read more >
Troubleshooting Cloud Functions - Google Cloud
These roles are not allowed to deploy new functions. ... It indicates that the deployment pipeline failed to create a multi-regional storage bucket....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found