Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行node index.js报错 #857

Open
webtang2017 opened this issue Sep 12, 2024 · 0 comments
Open

执行node index.js报错 #857

webtang2017 opened this issue Sep 12, 2024 · 0 comments

Comments

@webtang2017
Copy link

root@javakaifa:/home/yunfeng/flat-server-main/flat-server-main/dist# node index.js

/home/yunfeng/flat-server-main/flat-server-main/node_modules/ali-oss/lib/common/client/initOptions.js:24
throw new Error('require accessKeyId, accessKeySecret');
^
Error: require accessKeyId, accessKeySecret
提示没有id和密码,这个是自己指定吗?还是说需要去申请?我随便设置后,又报另外的错误:
root@javakaifa:/home/yunfeng/flat-server-main/flat-server-main# node index.js
node:internal/modules/cjs/loader:1143
throw err;
^

Error: Cannot find module '/home/yunfeng/flat-server-main/flat-server-main/index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant