React + redux project not launching with instructions


React + redux project not launching with instructions



This is my first React + Redux project, it works when I run it in my PC but when people follow my github instructions to run the project on their computers they get an error. "command not found: yarn"



Can anyone help me with this issue please? I wonder if my instructions are wrong in the first place
https://github.com/itsandromeda/Shoes-Store



If anyone gets to launch it succesfully without any errors please let me know.



Instructions:



Install dependencies


npm install



Install json server


npm install -g json-server



Run json server


json-server --watch db.json --port 3001



Launch project


yarn start





please add the error that they get, using my ubuntu i get json-server: command not found, but i make it working. it could be not working on linux.
– Lefi Tarik
Jun 25 at 16:43



json-server: command not found





Maybe they don't have node and npm installed
– Damian Peralta
Jun 25 at 16:52





They get the error "command not found: yarn"
– Annia J. Flores
Jun 25 at 16:54





@AnniaJ.Flores have them run npm start
– Derek
Jun 25 at 16:55


npm start





yarn needs to be installed on the user's machine, it's prerequisite. Alternatively npm start can be used but for that too npm needs to be installed (which will be there as first 2 steps also requires it, so it won't be a problem)
– Hriday Modi
Jun 25 at 19:26



yarn


npm start


npm




1 Answer
1



It all worked for me. I'm using node v8.9.4 and npm 5.6.0


v8.9.4


5.6.0






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Export result set on Dbeaver to CSV

Opening a url is failing in Swift