truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

cd client and enter npm run start, but fails to start, how to fix it #98

Closed ghost closed 5 years ago

ghost commented 5 years ago

Why not automatically download dependency packages... problem

no-name-max commented 5 years ago

Getting the same error too

i-tozer commented 5 years ago

Edit (Quick fix that worked for me):

//////////////////////////////////// I have a similar error:

screenshot

Even if I download react-scripts via "npm install react-scripts" I get the same error.

I have tried:

I also used create-react-app outside of truffle and 'npm run start' worked fine.

I am by no means an expert but perhaps it has something to do with this:

https://askubuntu.com/questions/141928/what-is-the-difference-between-bin-sh-and-bin-bash

urjitrajgor commented 5 years ago

Any solution? I am getting the same error

i-tozer commented 5 years ago

Any solution? I am getting the same error

Try using yarn instead and then running "yarn react-scripts start".

That worked for me.

ghost commented 5 years ago

Resolved. Dependent packages are best installed manually, should run 'npm install' before 'npm run start', and before run 'npm install', should install the Git.