Created
May 17, 2021 20:53
-
-
Save jlj77/25a43037a85a06491043d34387057cb2 to your computer and use it in GitHub Desktop.
npm build error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ | |
1 verbose cli '/home/jj/.nvm/versions/node/v14.17.0/bin/node', | |
1 verbose cli '/home/jj/.nvm/versions/node/v14.17.0/bin/npm', | |
1 verbose cli 'run', | |
1 verbose cli 'build' | |
1 verbose cli ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] | |
5 info lifecycle [email protected]~prebuild: [email protected] | |
6 info lifecycle [email protected]~build: [email protected] | |
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true | |
8 verbose lifecycle [email protected]~build: PATH: /home/jj/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/jj/Projects/matrix-appservice-discord/node_modules/.bin:/home/jj/.nvm/versions/node/v14.17.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games | |
9 verbose lifecycle [email protected]~build: CWD: /home/jj/Projects/matrix-appservice-discord | |
10 silly lifecycle [email protected]~build: Args: [ '-c', 'tsc' ] | |
11 silly lifecycle [email protected]~build: Returned: code: 2 signal: null | |
12 info lifecycle [email protected]~build: Failed to exec build script | |
13 verbose stack Error: [email protected] build: `tsc` | |
13 verbose stack Exit status 2 | |
13 verbose stack at EventEmitter.<anonymous> (/home/jj/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) | |
13 verbose stack at EventEmitter.emit (events.js:376:20) | |
13 verbose stack at ChildProcess.<anonymous> (/home/jj/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) | |
13 verbose stack at ChildProcess.emit (events.js:376:20) | |
13 verbose stack at maybeClose (internal/child_process.js:1055:16) | |
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) | |
14 verbose pkgid [email protected] | |
15 verbose cwd /home/jj/Projects/matrix-appservice-discord | |
16 verbose Linux 5.10.17-v8+ | |
17 verbose argv "/home/jj/.nvm/versions/node/v14.17.0/bin/node" "/home/jj/.nvm/versions/node/v14.17.0/bin/npm" "run" "build" | |
18 verbose node v14.17.0 | |
19 verbose npm v6.14.13 | |
20 error code ELIFECYCLE | |
21 error errno 2 | |
22 error [email protected] build: `tsc` | |
22 error Exit status 2 | |
23 error Failed at the [email protected] build script. | |
23 error This is probably not a problem with npm. There is likely additional logging output above. | |
24 verbose exit [ 2, true ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jj@raspberrypi:~/Projects/matrix-appservice-discord $ npm run build | |
> [email protected] build /home/jj/Projects/matrix-appservice-discord | |
> tsc | |
src/discordas.ts:95:26 - error TS2345: Argument of type '{ debug: (mod: string, args: any[]) => void; error: (mod: string, args: any[]) => void; info: (mod: string, args: any[]) => void; warn: (mod: string, args: any[]) => void; }' is not assignable to parameter of type 'ILogger'. | |
Property 'trace' is missing in type '{ debug: (mod: string, args: any[]) => void; error: (mod: string, args: any[]) => void; info: (mod: string, args: any[]) => void; warn: (mod: string, args: any[]) => void; }' but required in type 'ILogger'. | |
95 LogService.setLogger({ | |
~ | |
96 // eslint-disable-next-line @typescript-eslint/no-explicit-any | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
... | |
103 warn: (mod: string, args: any[]) => logFunc("warn", mod, args), | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
104 }); | |
~~~~~ | |
node_modules/matrix-bot-sdk/lib/logging/ILogger.d.ts:35:5 | |
35 trace(module: string, ...messageOrObject: any[]): any; | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'trace' is declared here. | |
Found 1 error. | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 2 | |
npm ERR! [email protected] build: `tsc` | |
npm ERR! Exit status 2 | |
npm ERR! | |
npm ERR! Failed at the [email protected] build script. | |
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! /home/jj/.npm/_logs/2021-05-16T21_52_30_919Z-debug.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment