#error when i run node .

9 messages · Page 1 of 1 (latest)

still seal
node:internal/modules/cjs/loader:1338
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.```


can anyone help me with this error?^^
supple orchid

In the package.json add (or edit) a field specifying your main file, for example:
"main": "./dist/index.js"

still seal
supple orchid

Is your main file src/index.js?

still seal
supple orchid

Mmh, does the error appear right after you execute node . and is there any stack trace?

still seal
node:internal/modules/cjs/loader:1338
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\Users\Exellent copier\Desktop\trinity bot v14\node_modules\skia-canvas\lib\v6\index.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (C:\Users\Exellent copier\Desktop\trinity bot v14\node_modules\skia-canvas\lib\index.js:23:29)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12) {
  code: 'ERR_DLOPEN_FAILED'
}

this^^