// Compile multiple times It is possible to compile once in a while and then fail all the time
docker build -t firda-build-test . --progress=plain --no-cache
dockerfile
FROM node:18.20.2-bullseye as build
RUN echo "deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib" > /etc/apt/sources.list && \
echo "deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib" >> /etc/apt/sources.list && \
echo "deb http://mirrors.aliyun.com/debian-security bullseye-security main" >> /etc/apt/sources.list && \
echo "deb-src http://mirrors.aliyun.com/debian-security bullseye-security main" >> /etc/apt/sources.list && \
echo "deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib" >> /etc/apt/sources.list && \
echo "deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y build-essential python3-dev zip && rm -rf /var/lib/apt/lists/*
RUN npm install -g --verbose frida@16.2.1 --registry=https://registry.npmmirror.com
RUN npm install -g --verbose frida-fs@5.2.5 --registry=https://registry.npmmirror.com
CMD ["/bin/sh", "-c", "tail -f /dev/null"]
OS :windows-->WSL -->Ubuntu 22.04.3 LTS
dockerfile
8 [ 4/11] RUN npm install -g frida@16.2.1 --registry=https://registry.npmmirror.com
8 18.78 npm notice
8 18.78 npm notice New minor version of npm available! 10.5.0 -> 10.8.2
8 18.78 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
8 18.78 npm notice Run
npm install -g npm@10.8.2
to update!8 18.78 npm notice
8 18.78 npm ERR! code 1
8 18.78 npm ERR! path /usr/local/lib/node_modules/frida
8 18.78 npm ERR! command failed
8 18.78 npm ERR! command sh -c prebuild-install || node-gyp rebuild
8 18.78 npm ERR! prebuild-install warn install socket hang up
8 18.78 npm ERR! gyp info it worked if it ends with ok
8 18.78 npm ERR! gyp info using node-gyp@10.0.1
8 18.78 npm ERR! gyp info using node@18.20.2 | linux | x64
8 18.78 npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
8 18.78 npm ERR! gyp http GET https://nodejs.org/download/release/v18.20.2/node-v18.20.2-headers.tar.gz
8 18.78 npm ERR! gyp http 200 https://nodejs.org/download/release/v18.20.2/node-v18.20.2-headers.tar.gz
8 18.78 npm ERR! gyp http GET https://nodejs.org/download/release/v18.20.2/SHASUMS256.txt
8 18.78 npm ERR! gyp http 200 https://nodejs.org/download/release/v18.20.2/SHASUMS256.txt
8 18.78 npm ERR! gyp info spawn /usr/bin/python3
8 18.78 npm ERR! gyp info spawn args [
8 18.78 npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
8 18.78 npm ERR! gyp info spawn args 'binding.gyp',
8 18.78 npm ERR! gyp info spawn args '-f',
8 18.78 npm ERR! gyp info spawn args 'make',
8 18.78 npm ERR! gyp info spawn args '-I',
8 18.78 npm ERR! gyp info spawn args '/usr/local/lib/node_modules/frida/build/config.gypi',
8 18.78 npm ERR! gyp info spawn args '-I',
8 18.78 npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
8 18.78 npm ERR! gyp info spawn args '-I',
8 18.78 npm ERR! gyp info spawn args '/root/.cache/node-gyp/18.20.2/include/node/common.gypi',
8 18.78 npm ERR! gyp info spawn args '-Dlibrary=shared_library',
8 18.78 npm ERR! gyp info spawn args '-Dvisibility=default',
8 18.78 npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.20.2',
8 18.78 npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
8 18.78 npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.20.2/<(target_arch)/node.lib',
8 18.78 npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/frida',
8 18.78 npm ERR! gyp info spawn args '-Dnode_engine=v8',
8 18.78 npm ERR! gyp info spawn args '--depth=.',
8 18.78 npm ERR! gyp info spawn args '--no-parallel',
8 18.78 npm ERR! gyp info spawn args '--generator-output',
8 18.78 npm ERR! gyp info spawn args 'build',
8 18.78 npm ERR! gyp info spawn args '-Goutput_dir=.'
8 18.78 npm ERR! gyp info spawn args ]
8 18.78 npm ERR! gyp: binding.gyp not found (cwd: /usr/local/lib/node_modules/frida) while trying to load binding.gyp
8 18.78 npm ERR! gyp ERR! configure error
8 18.78 npm ERR! gyp ERR! stack Error:
gyp
failed with exit code: 18 18.78 npm ERR! gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18)
8 18.78 npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
8 18.78 npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
8 18.78 npm ERR! gyp ERR! System Linux 5.15.153.1-microsoft-standard-WSL2
8 18.78 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
8 18.78 npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/frida
8 18.78 npm ERR! gyp ERR! node -v v18.20.2
8 18.78 npm ERR! gyp ERR! node-gyp -v v10.0.1
8 18.78 npm ERR! gyp ERR! not ok