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 React Components Data Flow Communicating between Components

problem with setting the developer server

i am tryiing to run "npm start" in the terminal to start the developer server but it is not working.

5 Answers

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hey eric yeboah,

The looking for funding message can be ignored. As for the error when running your script, based on the error you shared, it looks like you're trying to run npm Start instead of npm start. The script names are case sensitive so you'll want to make sure to match the casing with how the scripts are setup in the package.json file.

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi eric yeboah ๐Ÿ‘‹

Are you getting any errors when running the npm start command? There are a couple of things you'll want to double check:

  • Do you have Node installed?

You can run node --version in the terminal to check, if a version number is shown you're good to go

  • Are you located in the correct directory when trying to run that command?

When working with the project files you'll want to change the directory to matchup with the files of the video you're working on, for example:

React-Components/STAGE-2-Data-Flow/3-Communicating-Between-Components/BEGIN/scoreboard

Hope this helps to get you going again! ๐Ÿ˜ƒ

i am now getting 'react-script ' is not recognized as an internal or external command, operable program or batch file.

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Sounds like the required dependencies are not yet installed. After navigating to the correct path you'll want to run npm install, this will install the dependancies listed in the package.json after doing so you should be able to run the project with npm start ๐Ÿ™‚

Hope this helps!

i get โ€œ5 packages are looking for fundingโ€ after i run npm install but when i go on to run npm start, it returns an error โ€œMissing script : Startโ€