node-printer icon indicating copy to clipboard operation
node-printer copied to clipboard

npm install failed

Open m0nsterzd opened this issue 7 years ago • 1 comments

I am trying to install this on a debian 9 server and it is failing with

gyp: Call to 'cups-config --libs' returned exit status 0 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Linux 4.9.0-3-amd64 gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "rebuild" gyp ERR! cwd /root/printer/node_modules/node-printer gyp ERR! node -v v6.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

I have installed cups, node-gyp and libcups2-dev and still have the error. Any ideas ?

m0nsterzd avatar Mar 09 '18 15:03 m0nsterzd

Did you run "cups-config --libs"?

tojocky avatar Mar 11 '18 20:03 tojocky