react-form-builder
react-form-builder copied to clipboard
Dependency Issue
Hello,
I'm new to react, after trying a npm install I had few errors, easy to fix, but I leave it there for info, on Debian GNU/Linux 8 (jessie) 64 bits :
> [email protected] install /home/DE/react-form-builder/node_modules/canvas
> node-gyp rebuild
./util/has_lib.sh: 31: ./util/has_lib.sh: pkg-config: not found
Fix:
apt-get install pkg-config
> [email protected] install /home/DE/react-form-builder/node_modules/canvas
> node-gyp rebuild
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
Fix:
apt-get install libcairo2-dev libjpeg-dev libgif-dev
Now it is fully working, with only warnings:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] requires a peer of jquery@ but none was installed.
de@LP-DEB-004:~/Documents/PROJETS/react-form-builder$ npm start
> [email protected] start /home/DE/react-form-builder
> webpack-dev-server --hot --inline
http://localhost:8080/
webpack result is served from /
content is served from /home/DE/react-form-builder
Hash: 142d0b92d937a2de1fbb
Version: webpack 1.13.3
Many thanks to @blackjk3 and all contributers!