jr005
jr005

Reputation: 11

How to get React Project to work Because NPM Start Wont Work

Hello I downloaded a react project from https://github.com/fabiau/jc-calendar and when I do npm start I get error messages. I tried to do "NPM Fund" and "NPM Update" and none of them worked. Obviously i have no clue what I am doing so if anyone can point me in the right direction I would apprecaite it.

enter image description here

Upvotes: 0

Views: 138

Answers (4)

Aqib Naeem
Aqib Naeem

Reputation: 441

most of the repositories on GitHub, don't have dependencies installed, after downloading a repository on your local machine, you need to run "npm install". The reason behind this is that npm will look for all the required dependencies of the specified project and install them on your machine, with node-modules, then run "npm start"

Upvotes: 0

Nithin - Techidiots
Nithin - Techidiots

Reputation: 103

Checkout scripts in package.json in usual case start will be as given below but as per the code you consider npm-run-all package is used so be sure to run npm install

"scripts": {
    "start": "react-scripts start",
  },

This may help you out https://www.npmjs.com/package/npm-run-all

Upvotes: 0

Chamal Silva
Chamal Silva

Reputation: 73

Try deleting folder node_modules and package-lock.json if exists and run command npm install

Upvotes: 0

Abhishek Sharma
Abhishek Sharma

Reputation: 203

Before starting dev server you'll have to install the dependencies of the project using npm install , as generally node_modules/dependencies are not part of the repository. This is mentioned in Readme.md of JC-calender.enter image description here

Upvotes: 2

Related Questions