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

I’m getting the below error when I use the “run” button. but if I use the node command “node server.js” its runs properly in web view and console.

the error using “Run” button as follows:
Error: Cannot find module ‘/home/runner/boilerplate-npm/index.js’
Require stack:

  • /nix/store/qpnf0dafrfsbcwb4z7cphjm0dff0vl7l-prybar-nodejs-0.0.0-e0d9a52/prybar_assets/nodejs/module-context-hook.js
  • /tmp/prybar-nodejs-190570670.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.resolve (node:internal/modules/cjs/helpers:109:19)

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