Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Introducing the Challenge

Cant get the client to run.

I can get the API to install and run correctly but the client gives an error:

/Users/andrewhinkson/Documents/Practice/Unit10Practice/React Hooks Practice/client/node_modules/chokidar/lib/fsevents-handler.js:28
  return (new fsevents(path)).on('fsevent', callback).start();
          ^

TypeError: fsevents is not a constructor
    at createFSEventsInstance (/Users/andrewhinkson/Documents/Practice/Unit10Practice/React Hooks Practice/client/node_modules/chokidar/lib/fsevents-handler.js:28:11)
    at setFSEventsListener (/Users/andrewhinkson/Documents/Practice/Unit10Practice/React Hooks Practice/client/node_modules/chokidar/lib/fsevents-handler.js:82:16)
    at FSWatcher.FsEventsHandler._watchWithFsEvents (/Users/andrewhinkson/Documents/Practice/Unit10Practice/React Hooks Practice/client/node_modules/chokidar/lib/fsevents-handler.js:252:16)
    at FSWatcher.<anonymous> (/Users/andrewhinkson/Documents/Practice/Unit10Practice/React Hooks Practice/client/node_modules/chokidar/lib/fsevents-handler.js:386:25)
    at LOOP (fs.js:1803:14)
    at processTicksAndRejections (internal/process/task_queues.js:75:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-hooks-practice@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the react-hooks-practice@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Im running: macOS Cataline 10.15.7 npm -v 6.14.11

Any help would be appreciated.

I came across the same issue while running the client. Resolved using this method - https://stackoverflow.com/questions/42308879/how-to-solve-npm-error-npm-err-code-elifecycle

1 Answer

Where can i find the code to do the practice ? i cant find it ! do i need the Courses Plus subscription?

Reggie Williams
Reggie Williams
Treehouse Teacher

Hey Cristian David are you able to see the project downloads section of this video's page?