r2frida: build error
I’ve tried install through r2pm and git:
> r2frida-agent@3.7.0 build /root/src/r2frida
> frida-compile src/agent -o src/_agent.js
frida-compile src/agent -o src/_agent.js
{ [TypeScript error: ../../node_modules/@types/node/index.d.ts(6208,55): Error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.]
message: '../../node_modules/@types/node/index.d.ts(6208,55): Error TS2583: Cannot find name \'Map\'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.',
fileName: '../../node_modules/@types/node/index.d.ts',
line: 6208,
column: 55,
name: 'TypeScript error',
inputs:
Set {
'/root/src/r2frida/src/agent/index.js',
'/root/node_modules/@types/node/index.d.ts',
'/root/node_modules/@types/node/inspector.d.ts',
'/root/src/r2frida/node_modules/typescript/lib/lib.d.ts',
'/root/src/r2frida/node_modules/typescript/lib/lib.es5.d.ts',
'/root/src/r2frida/node_modules/typescript/lib/lib.dom.d.ts',
'/root/src/r2frida/node_modules/typescript/lib/lib.webworker.importscripts.d.ts',
'/root/src/r2frida/node_modules/typescript/lib/lib.scripthost.d.ts' } }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! r2frida-agent@3.7.0 build: `frida-compile src/agent -o src/_agent.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the r2frida-agent@3.7.0 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! /root/.npm/_logs/2019-08-02T16_14_26_977Z-debug.log
/root/.npm/_logs/2019-08-02T16_14_26_977Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/n/versions/node/9.6.1/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@5.6.0
3 info using node@v9.6.1
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle r2frida-agent@3.7.0~prebuild: r2frida-agent@3.7.0
6 info lifecycle r2frida-agent@3.7.0~build: r2frida-agent@3.7.0
7 verbose lifecycle r2frida-agent@3.7.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle r2frida-agent@3.7.0~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/src/r2frida/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin:/opt/radare2/bin:/root/.go/bin:/usr/local/rvm/bin
9 verbose lifecycle r2frida-agent@3.7.0~build: CWD: /root/src/r2frida
10 silly lifecycle r2frida-agent@3.7.0~build: Args: [ '-c', 'frida-compile src/agent -o src/_agent.js' ]
11 silly lifecycle r2frida-agent@3.7.0~build: Returned: code: 1 signal: null
12 info lifecycle r2frida-agent@3.7.0~build: Failed to exec build script
13 verbose stack Error: r2frida-agent@3.7.0 build: `frida-compile src/agent -o src/_agent.js`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at EventEmitter.emit (events.js:127:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:127:13)
13 verbose stack at maybeClose (internal/child_process.js:933:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid r2frida-agent@3.7.0
15 verbose cwd /root/src/r2frida
16 verbose Linux 4.18.10-rt5
17 verbose argv "/usr/local/n/versions/node/9.6.1/bin/node" "/usr/local/bin/npm" "run" "build"
18 verbose node v9.6.1
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error r2frida-agent@3.7.0 build: `frida-compile src/agent -o src/_agent.js`
22 error Exit status 1
23 error Failed at the r2frida-agent@3.7.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (12 by maintainers)
also it seems like you are using a very old version of r2 (2.3 is more than a year old). and r2frida from git expects r2 from git (or at least last release). please ensure you have uninstalled your old r2 from the distro package first