Information Security with HelmetJS - Install and Require Helmet

Tell us what’s happening:
Error: Cannot find module ‘/home/runner/boilerplate-infosec/index.js’

Your code so far
Tried these steps:

  • Start by importing the project on Replit.
  • Next, you will see a .replit window.
  • Select Use run command and click the Done button.

getting error at the 3rd step

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.42

Challenge: Information Security with HelmetJS - Install and Require Helmet

Link to the challenge:

Hello and welcome to the forum!

This error occurs because the repl is trying to start from the default index.js, which (in this case) doesn’t exist. If you click on ‘Use Run Command’ and ‘Done’, this should then allow your app to run from app.js, which connects via server.js.

I’ve just imported this repl and it works for me and runs successfully.

1 Like

thanks !!
Yes it worked. after setting up the run command in configure repl, clicking on run button started the Node

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.