在 Ubuntu 20.04 中使用命令( sudo apt update && sudo apt upgrade, sudo apt install nodejs
(v16.7.0)、 (7.20.3))安装 Node.js 和 NPM 后,我收到以下消息:sudo apt install npm
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/Aula02/aula02.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
谢谢。