0

what to do how run node js in my vs code

solve the problem node:internal/modules/cjs/loader:1147 throw err; ^

Error: Cannot find module 'C:\Users\Hp\Desktop\express\3.1+Express+Server\index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15) at Module._load (node:internal/modules/cjs/loader:985:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] }

2
  • 2
    Show us some code and how you're trying to run it. We don't have a magic crystal ball to guess. Commented Nov 24, 2023 at 9:04
  • Add your code to the question after removing the confidential data. We can't find the issue without the code. Commented Nov 24, 2023 at 10:31

1 Answer 1

0

Does the file "index.js" exist in the /3.1+Express+Server/ folder?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.