0

I'm trying to install a new dependency on NPM called Nodemon, every time I try to GitBash doesn't respond. package.json reads this;

 "name": "server",
 "version": "1.0.0",
 "main": "index.js",
 "scripts": {
   "start": "node index.js"
 },
 "keywords": [],
 "author": "",
 "license": "ISC",
 "dependencies": {
   "express": "^4.17.1",
   "morgan": "^1.10.0"
 },
 "devDependencies": {},
 "description": ""
}

Here's what GitBash shows.

enter image description here

Jay Parmar
  • 368
  • 2
  • 9

2 Answers2

0

Cover the bases:

  1. Check if you have node and npm installed nodejs.org $ node -v $ npm -v

  2. Make sure your bash is in the correct directory $ pwd $ ls

  3. Install locally nodemon npm install nodemon

  4. Install Globally npm install -g nodemon

MathHype
  • 16
  • 1
  • 1
0

Resetting my router and restarting the router seemed to fix it as well as installing packages from scratch. It looks like when I was installing the dependency originally, I closed GitBash prematurely and it caused a heap of problems, including this one.