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

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
}

About this issue

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

Commits related to this issue

Most upvoted comments

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.