I wanted to create my own Misskey instance, but I ran into a problem building it. This is my first time doing something like this, and although I tried to figure it out on my own for a couple of days, I couldn't, so I came to the forum.
OS: Ubuntu 20.04 (LTS) x64
Size: 2 vCPUs, 4GB / 80GB Disk
The thing is, after entering the command "NODE_ENV=production yarn build", I got a huge number of errors like this:
WARNING in ./src/client/components/drive.file.vue?vue&type=script&lang=ts (./node_modules/ts-loader/index.js??clonedRuleSet-8.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/components/drive.file.vue?vue&type=script&lang=ts) 144:12-27
export 'updateAvatar' (imported as 'os') was not found in '@client/os' (possible exports: api, apiRequests, apiWithDialog, contextMenu, deckGlobalEvents, dialog, form, modalMenu, modalPageWindow, openEmojiPicker, pageWindow, pendingApiRequestsCount, pickEmoji, popup, popups, post, promiseDialog, selectDriveFile, selectDriveFolder, selectUser, stream, success, upload, uploads, waiting, windows)
@ ./src/client/components/drive.file.vue?vue&type=script&lang=ts 1:0-200 1:0-200 1:201-390 1:201-390
@ ./src/client/components/drive.file.vue 2:0-61 3:0-56 3:0-56 6:0-13 7:0-16 9:15-21
@ ./node_modules/ts-loader/index.js??clonedRuleSet-8.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/components/drive.vue?vue&type=script&lang=ts 4:0-37 11:8-13
@ ./src/client/components/drive.vue?vue&type=script&lang=ts 1:0-195 1:0-195 1:196-380 1:196-380
@ ./src/client/components/drive.vue 2:0-56 3:0-51 3:0-51 6:0-13 7:0-16 9:15-21
@ ./node_modules/ts-loader/index.js??clonedRuleSet-8.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/components/drive-select-dialog.vue?vue&type=script&lang=ts
@ ./src/client/components/drive-select-dialog.vue?vue&type=script&lang=ts 1:0-209 1:0-209 1:210-408 1:210-408
@ ./src/client/components/drive-select-dialog.vue 2:0-70 3:0-65 3:0-65 4:0-13 6:15-21
@ ./src/client/os.ts
@ ./src/client/init.ts
And this:
> misskey@12.84.3 build-ts /home/misskey/misskey
> tsc -p src/tsconfig.json || echo done. && tsc-alias -p src/tsconfig.json
node_modules/@types/express-serve-static-core/index.d.ts:501:18 - error TS2430: Interface 'Response<ResBody>' incorrectly extends interface 'ServerResponse'.
Types of property 'req' are incompatible.
Type 'Request<ParamsDictionary, any, any, Query> | undefined' is not assignable to type 'IncomingMessage'.
Type 'undefined' is not assignable to type 'IncomingMessage'.
501 export interface Response<ResBody = any> extends http.ServerResponse, Express.Response {
I also tried the command "npx node-gyp configure", but also with no success:
gyp: binding.gyp not found (cwd: /home/misskey/misskey) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/misskey/misskey/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.4.0-73-generic
gyp ERR! command "/usr/bin/node" "/home/misskey/misskey/node_modules/.bin/node-gyp" "configure"
gyp ERR! cwd /home/misskey/misskey
gyp ERR! node -v v14.17.4
gyp ERR! node-gyp -v v8.0.0
gyp ERR! not ok
Please tell me what I am doing wrong. Thank you.