truffle-box / react-box

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

An error occurred when use 'npm run test' #84

Closed xialialia closed 5 years ago

xialialia commented 5 years ago

xialiangdeMacBook-Air:re_demo xialiang$ npm run start npm ERR! path /Users/xialiang/re_demo/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/Users/xialiang/re_demo/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /Users/xialiang/.npm/_logs/2018-11-17T11_22_09_643Z-debug.log

adrianmcli commented 5 years ago

Are you running this inside the client folder? If not, make sure to do that:

cd client
npm start

The default Truffle project has no package.json, it's only the React app inside the client folder that contains it.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if there is no reply to further comments.