GithubHelp home page GithubHelp logo

docker-libvips's People

Contributors

gmaliar avatar nadavshatz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rposborne

docker-libvips's Issues

how to use

I don't understand how to use this image.

Can I use npx inside the image?

Something like: npx sharp-cli <parameters>?

I installed sharp and sharp-cli, but I'm not able to use it after installing...

I want to use sharp and sharp-cli as an npm module called with ̀npx`.

This is what I am doing:

docker run -it --rm tailor/docker-libvips:node-10.9 /bin/bash
npx sharp-cli

and the error is:

internal/modules/cjs/loader.js:583
throw err;
^

Error: Cannot find module '/root/.npm/_npx/6/lib/node_modules/sharp-cli/node_modules/sharp/install/libvips'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, stat '/root/.npm/_npx/6/lib/node_modules/sharp-cli/node_modules/sharp/.node-gyp/10.9.0'
gyp ERR! System Linux 4.9.0-9-amd64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/.npm/_npx/6/lib/node_modules/sharp-cli/node_modules/sharp
gyp ERR! node -v v10.9.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-14T00_09_09_733Z-debug.log
Install for sharp-cli@latest failed with code 1

npx seems to install sharp-cli, but then does not find it (Cannot find module '/root/.npm/_npx/6/lib/node_modules/sharp-cli/node_modules/sharp/install/libvips'). That's strange...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.