Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'dotenv' imported from index.js
[90m at new NodeError (node:internal/errors:400:5)[39m
[90m at packageResolve (node:internal/modules/esm/resolve:889:9)[39m
[90m at moduleResolve (node:internal/modules/esm/resolve:938:20)[39m
[90m at defaultResolve (node:internal/modules/esm/resolve:1153:11)[39m
[90m at nextResolve (node:internal/modules/esm/loader:163:28)[39m
[90m at ESMLoader.resolve (node:internal/modules/esm/loader:842:30)[39m
[90m at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)[39m
[90m at ModuleWrap. (node:internal/modules/esm/module_job:77:40)[39m
[90m at link (node:internal/modules/esm/module_job:76:36)[39m {
code: [32m'ERR_MODULE_NOT_FOUND'[39m
node index.js 报错如下: node:internal/errors:491 ErrorCaptureStackTrace(err); ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'dotenv' imported from index.js [90m at new NodeError (node:internal/errors:400:5)[39m [90m at packageResolve (node:internal/modules/esm/resolve:889:9)[39m [90m at moduleResolve (node:internal/modules/esm/resolve:938:20)[39m [90m at defaultResolve (node:internal/modules/esm/resolve:1153:11)[39m [90m at nextResolve (node:internal/modules/esm/loader:163:28)[39m [90m at ESMLoader.resolve (node:internal/modules/esm/loader:842:30)[39m [90m at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)[39m [90m at ModuleWrap. (node:internal/modules/esm/module_job:77:40)[39m
[90m at link (node:internal/modules/esm/module_job:76:36)[39m {
code: [32m'ERR_MODULE_NOT_FOUND'[39m