Boss Machine Project - Error When Running npm install


I was getting an error on the Boss Machine project in the back-end engineering course. When trying to run the npm install after downloading the project, I kept getting errors. It seems like a common problem, but when I emailed Codecademy, they didn’t bother to get back to me.

Anyway, I have found a workaround for anyone else struggling with it:

instead of running npm install, run:

npm install --force

Once that has completed, it will require an audit. So, run:

npm audit fix --force


This worked for me !

Remember to add the following code to the end of server.js to actually start the server:

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

Now the server start and you get the expected message in the terminal: Server listening to port 4001

1 Like

Your code worked for me. Thank you.