node app.js
node:internal/modules/cjs/loader:998
throw err;
^
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\app.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
我试图让Node代码正常工作,基本上是运行命令:node app.js
npm install
命令吗? - Nibras Shamiapp.js
内容是什么?至少包括导入部分。 - Nibras Shaminode_modules
里面? - kennarddh