Managing Packages with NPM - How to Use package.json, the Core of Any Node.js Project or npm Package

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

Your browser information:

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

Challenge Information:

Managing Packages with NPM - How to Use package.json, the Core of Any Node.js Project or npm Package

i got problems even before start, i’m trying to use replit, use the run button and i just receive this message
node:internal/modules/cjs/loader:1075
throw err;
^

Error: Cannot find module ‘/home/runner/boilerplate-npm/index.js’
at Module._resolveFilename (node:internal/modules/cjs/loader:1072:15)
at Module._load (node:internal/modules/cjs/loader:925:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
}

Node.js v20.3.1
i dont know how to proceed

I think I know what went wrong. If I’m right, you just finished up adding the information to author information to the JSON and directly hit run.

The Run command wasn’t setup yet. See that big screen in the configure tab on the right. I want you hit Done then the window should close.

Then try hitting Run again.

If that doesn’t work, you can always type npm run start into the shell.

Happy learning. :slight_smile:

2 Likes

thanks a lot. I closed the window and started again, i did exactly what you said. it works.

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