blackjk3 / react-form-builder

A complete react form builder that interfaces with a json endpoint to load and save generated forms. The toolbox contains 16 items for gathering data. Everything from star ratings to signature boxes!
MIT License
654 stars 537 forks source link

Dependency Issue #9

Open DependencyHell opened 7 years ago

DependencyHell commented 7 years ago

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 :

> canvas@1.6.2 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

> canvas@1.6.2 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 fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN react-bootstrap-native-slider@1.0.3 requires a peer of jquery@ but none was installed.
de@LP-DEB-004:~/Documents/PROJETS/react-form-builder$ npm start

> react-forms-builder@0.0.3 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!