Im stuck on installing webpack and react… when i run “foreman start -f Procfile.static” its always show a lot of NPM error… can you give me a tutorial how to configure webpack and react on sharetribe installation?
Note : im totally noob
First of all, you should have the correct version of Node.js installed on your machine. The supported version can be seen in the .nvmrc file in the repository root. As of now, for the latest 5.7.1 release, the required version is 6.1. I suggest using nvm:
nvm install v6.1
nvm alias default 6.1
Now you can verify your Node.js version with:
node -v
After that, you should run npm install to get the latest dependencies. You should not worry about Webpack or React if you don’t intend to develop the UI further from here.
If you’ve ran npm install already before and you have to change your Node.js version (or if you update Node.js version some time in the future), you should make sure the installed dependencies have been rebuilt with the correct Node.js version with:
cd client/
npm install
npm prune # removes old unused dependencies
npm rebuild # recompiles all possible C++ addons that might need change after Node.js has been updated
after intsalling nvm and v6.1 when i run npm install this is what i get , any help
undefined postinstall /home/john/sharetribe
cd client && npm install
npm WARN optional Skipping failed optional dependency /babel-cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12
npm WARN optional Skipping failed optional dependency /webpack/watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12
We strictly followed the installation instructions, all versions (node, npm) are matching the requirements and everything else looks good so far. Only the generation of the assets causes lots of troubles and basically prevents us from proceeding and using sharetribe in general on our own server.
@kite2go Sorry to hear that this is causing you major troubles. After we introduced React on Rails and the Webpack compilation step to the installation process, we’ve received number of bug reports from people that the JS-compilation crashes in certain environments. This is a major head-ache for us and honestly we don’t have a clear understanding how to fix these issues.
We are trying to find a solution, but it seems that it’s not that easy. Any help is highly appreciated!
Is there anything I’m doing wrong? I’ve tried to follow the installation instructions exactly - I’m on a DigitalOcean droplet running 16.04 if that helps.