My first issue is about permission :
[MTR@s2]:<~/domains/directus.mtr.serv00.net/public_nodejs>$ npx directus start
sh: directus: Permission denied
I did enable Binexec option. This seems to be the only log generated.
The second issue is with "npm install". node-pre-gyp fails.
Here my package.json :
{
"name": "directus_test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "directus start",
"build": "npx directus bootstrap",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"directus": "^10.9.3",
"mysql": "^2.18.1"
}
}
npm install log error :
[MTR@s2]:<~/domains/directus.mtr.serv00.net/public_nodejs>$ npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: rollup-plugin-styles@4.0.0
npm WARN Found: rollup@3.29.4
npm WARN node_modules/@directus/extensions-sdk/node_modules/rollup
npm WARN rollup@"3.29.4" from @directus/extensions-sdk@10.3.4
npm WARN node_modules/@directus/extensions-sdk
npm WARN @directus/extensions-sdk@"10.3.4" from @directus/api@17.1.0
npm WARN node_modules/@directus/api
npm WARN 1 more (rollup-plugin-esbuild)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer rollup@"^2.63.0" from rollup-plugin-styles@4.0.0
npm WARN node_modules/@directus/extensions-sdk/node_modules/rollup-plugin-styles
npm WARN rollup-plugin-styles@"4.0.0" from @directus/extensions-sdk@10.3.4
npm WARN node_modules/@directus/extensions-sdk
npm WARN
npm WARN Conflicting peer dependency: rollup@2.79.1
npm WARN node_modules/rollup
npm WARN peer rollup@"^2.63.0" from rollup-plugin-styles@4.0.0
npm WARN node_modules/@directus/extensions-sdk/node_modules/rollup-plugin-styles
npm WARN rollup-plugin-styles@"4.0.0" from @directus/extensions-sdk@10.3.4
npm WARN node_modules/@directus/extensions-sdk
npm ERR! code 1
npm ERR! path /usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! gmake: Entering directory '/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/build'
npm ERR! CC(target) Release/obj.target/libargon2/argon2/src/opt.o
npm ERR! CC(target) Release/obj.target/libargon2/argon2/src/argon2.o
npm ERR! CC(target) Release/obj.target/libargon2/argon2/src/core.o
npm ERR! CC(target) Release/obj.target/libargon2/argon2/src/blake2/blake2b.o
npm ERR! CC(target) Release/obj.target/libargon2/argon2/src/thread.o
npm ERR! CC(target) Release/obj.target/libargon2/argon2/src/encoding.o
npm ERR! AR(target) Release/obj.target/argon2.a
npm ERR! COPY Release/argon2.a
npm ERR! CXX(target) Release/obj.target/argon2/argon2_node.o
npm ERR! gmake: Leaving directory '/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/build'
npm ERR! Failed to execute '/usr/local/devil/node18/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/lib/binding/napi-v3/argon2.node --module_name=argon2 --module_path=/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/lib/binding/napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@0.17.0
npm ERR! node-pre-gyp info using node@18.19.1 | freebsd | x64
npm ERR! node-pre-gyp WARN Using needle for node-pre-gyp https download
npm ERR! node-pre-gyp info check checked for "/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/lib/binding/napi-v3/argon2.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/ranisalt/node-argon2/releases/download/v0.31.2/argon2-v0.31.2-napi-v3-freebsd-x64-unknown.tar.gz
npm ERR! node-pre-gyp http 404 https://github.com/ranisalt/node-argon2/releases/download/v0.31.2/argon2-v0.31.2-napi-v3-freebsd-x64-unknown.tar.gz
npm ERR! node-pre-gyp WARN Tried to download(404): https://github.com/ranisalt/node-argon2/releases/download/v0.31.2/argon2-v0.31.2-napi-v3-freebsd-x64-unknown.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not found for argon2@0.31.2 and node@18.19.1 (node-v108 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/ranisalt/node-argon2/releases/download/v0.31.2/argon2-v0.31.2-napi-v3-freebsd-x64-unknown.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@18.19.1 | freebsd | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@18.19.1 | freebsd | x64
npm ERR! gyp info find Python using Python version 3.10.11 found at "/usr/local/bin/python3"
npm ERR! gyp info spawn /usr/local/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/MTR/.cache/node-gyp/18.19.1/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/MTR/.cache/node-gyp/18.19.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/MTR/.cache/node-gyp/18.19.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@18.19.1 | freebsd | x64
npm ERR! gyp info spawn gmake
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! /bin/sh: Cannot fork: Resource temporarily unavailable
npm ERR! gmake: *** [argon2.target.mk:119: Release/obj.target/argon2/argon2_node.o] Error 2
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `gmake` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm ERR! gyp ERR! System FreeBSD 13.2-RELEASE-p10
npm ERR! gyp ERR! command "/usr/local/devil/node18/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/lib/binding/napi-v3/argon2.node" "--module_name=argon2" "--module_path=/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/lib/binding/napi-v3" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
npm ERR! gyp ERR! cwd /usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2
npm ERR! gyp ERR! node -v v18.19.1
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/devil/node18/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/lib/binding/napi-v3/argon2.node --module_name=argon2 --module_path=/usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2/lib/binding/napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/home/MTR/.npm-global/lib/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
npm ERR! node-pre-gyp ERR! System FreeBSD 13.2-RELEASE-p10
npm ERR! node-pre-gyp ERR! command "/usr/local/devil/node18/bin/node" "/home/MTR/.npm-global/bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /usr/home/MTR/domains/directus.mtr.serv00.net/public_nodejs/node_modules/argon2
npm ERR! node-pre-gyp ERR! node -v v18.19.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.17.0
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /home/MTR/.npm/_logs/2024-03-02T10_44_47_496Z-debug-0.log