Expresso Capstone Project: Cannot find module 'body-parser'

When I try to run npm test in the root directory of the Expresso project, I get an error that says “cannot find module ‘body-parser’”. I ran npm install in the root directory first and all seemed to go well. Anyone else had this issue/have any ideas why it might be coming up? My code is below:

const bodyParser = require('body-parser');
const cors = require('cors');
const errorhandler = require('errorhandler');
const morgan = require('morgan');
const express = require('express');
const apiRouter = require('./api/api');

const app = express();

const PORT = process.env.PORT || 4000;

app.use(bodyParser.json());
app.use(cors());
app.use('/api', apiRouter);

app.use(errorhandler);

app.use((req, res, next) => {
  morgan('dev');
});

app.listen(PORT, () => {
  console.log(`Server is listening on port ${PORT}`);
});

module.exports = app;

Hey! Did you run npm install body-parser or npm install body-parse ? There’s an error on the express capstone project with a mispelling. Also, check your package.json to see if it contains body-parser under dependencies!