netless-io / netless-io/flat-server
执行node index.js报错
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 684
- Forks
- 277
- PR merge metrics
- No merged PRs in 30d
Description
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: []
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported dist/index.js entry point and the ali-oss error in node_modules/ali-oss/lib/common/client/initOptions.js. Check the project’s startup configuration and entry-point instructions to determine how accessKeyId and accessKeySecret are supplied and which index.js should be run. Done means the required configuration and correct startup command are documented and the server starts without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100