npm start is not working

How to fix npm start not working?(solution)


Before to start using react, node.js, and npm (node package management ) after downloading and installing node.js, npm is not needed to be installed because it is already included in node.js. Let’s assume everything is done now, and when you run the command npm start in the terminal. The “npm start ” does not work and how to fix “npm start “not working. The following error :

 

npm start not working

This is how to fix "npm start not working"

Actually, if you did realize the “npm start” ran into another directory which is the wrong one, the only thing you have to do is to change the directory by doing the following:

Step 1:

Change the directory  to his sub-directory by typing: cd my-portfolio (name of the directory) like shown down:

 

npm start not working
npm start not working

Step 2:

And now you can type “npm start” and your code will run successfully :

 

npm start not working

This is how I fixed mine if there is any other way I can help you let me know in the comment section.

 


1 thought on “How to fix npm start not working?(solution)”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top