./util/has_lib.sh: 31: ./util/has_lib.sh: pkg-config: not found
gyp: Call to './util/has_lib.sh freetype' 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/npm/node_modules/node-gyp/lib/configure.js:308:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:192:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.9.4-moby
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 /opt/test/node_modules/canvas
gyp ERR! node -v v7.5.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
make: Entering directory '/opt/test/node_modules/contextify/build'
CXX(target) Release/obj.target/contextify/src/contextify.o
../src/contextify.cc: In static member function 'static v8::Local ContextWrap::createV8Context(v8::Local)':
../src/contextify.cc:131:68: warning: 'v8::Local v8::Function::NewInstance() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
Local
yes.
as you can see node is supported up to 6.
That is because of jsdom that we need to support node 0.12
Ah ok, but we use fabricjs on the client (browser) and only use npm as the package manager. It's an optional dependency, but the installation crashes the whole npm installation. Should that be the case?
Thanks!
sadly yes.
There is an open issue about what to do with this dependencies.
npm does not handle this optional very good.
You can try to install with --no-optional and it should no crash.
oh okay :-/, thanks!
If you do not mind installing a bunch of dependencies, check this installation on node-canvas