Paperless-AI Install Fails - [ERROR] in line 41: exit code 0: while executing command $STD npm install #485

Closed
opened 2026-02-04 19:14:13 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @TranceKat1200 on GitHub (Feb 12, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Paperless-AI

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/paperless-ai.sh)"

📝 Provide a clear and concise description of the issue.

I have attempted to use this script in advanced mode, and in default. The results are the same both ways.

Running the install script on the PVE console results in a series of warnings followed by a series of errors resulting in a failed install.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Go to your PVE console.
Paste in this command to execute the script for paperless-al installation as an LXC: bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/paperless-ai.sh)"
Hit [Enter]
See error

Paste the full error output (if available).

...lots of install messages...
✔️ Installed Node.js
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated npmlog@6.0.2: This package is no longer supported.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated gauge@4.0.4: This package is no longer supported.
npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
npm warn deprecated u/npmcli/move-file@1.1.2: This functionality has been moved to u/npmcli/fs
npm error code 1
npm error path /opt/paperless-ai/node_modules/sqlite3
npm error command failed
npm error command sh -c prebuild-install -r napi || node-gyp rebuild
npm error prebuild-install warn This package does not support N-API version undefined
npm error prebuild-install warn install No prebuilt binaries found (target=undefined runtime=napi arch=x64 libc= platform=linux)
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@8.4.1
npm error gyp info using node@22.14.0 | linux | x64
npm error (node:5108) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead.
npm error (Use node --trace-deprecation ... to show where the warning was created)
npm error gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
npm error gyp http GET https://nodejs.org/download/release/v22.14.0/node-v22.14.0-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v22.14.0/node-v22.14.0-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v22.14.0/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v22.14.0/SHASUMS256.txt
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/opt/paperless-ai/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/opt/paperless-ai/node_modules/sqlite3/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/opt/paperless-ai/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/22.14.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/22.14.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/opt/paperless-ai/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/22.14.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/opt/paperless-ai/node_modules/sqlite3',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp ERR! build error
npm error gyp ERR! stack Error: not found: make
npm error gyp ERR! stack at getNotFoundError (/opt/paperless-ai/node_modules/which/which.js:10:17)
npm error gyp ERR! stack at /opt/paperless-ai/node_modules/which/which.js:57:18
npm error gyp ERR! stack at new Promise ()
npm error gyp ERR! stack at step (/opt/paperless-ai/node_modules/which/which.js:54:21)
npm error gyp ERR! stack at /opt/paperless-ai/node_modules/which/which.js:71:22
npm error gyp ERR! stack at new Promise ()
npm error gyp ERR! stack at subStep (/opt/paperless-ai/node_modules/which/which.js:69:33)
npm error gyp ERR! stack at /opt/paperless-ai/node_modules/which/which.js:80:22
npm error gyp ERR! stack at /opt/paperless-ai/node_modules/isexe/index.js:42:5
npm error gyp ERR! stack at /opt/paperless-ai/node_modules/isexe/mode.js:8:5
npm error gyp ERR! System Linux 6.8.12-5-pve
npm error gyp ERR! command "/usr/bin/node" "/opt/paperless-ai/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /opt/paperless-ai/node_modules/sqlite3
npm error gyp ERR! node -v v22.14.0
npm error gyp ERR! node-gyp -v v8.4.1
npm error gyp ERR! not ok
npm notice
npm notice New major version of npm available! 10.9.2 -> 11.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0
npm notice To update run: npm install -g npm@11.1.0
npm notice
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-02-11T20_22_18_427Z-debug-0.log

[ERROR] in line 41: exit code 0: while executing command $STD npm install
root@sol:~#

🖼️ Additional context (optional).

No response

Originally created by @TranceKat1200 on GitHub (Feb 12, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Paperless-AI ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/paperless-ai.sh)" ### 📝 Provide a clear and concise description of the issue. I have attempted to use this script in advanced mode, and in default. The results are the same both ways. Running the install script on the PVE console results in a series of warnings followed by a series of errors resulting in a failed install. ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Go to your PVE console. Paste in this command to execute the script for paperless-al installation as an LXC: bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/paperless-ai.sh)" Hit [Enter] See error ### ❌ Paste the full error output (if available). ...lots of install messages... ✔️ Installed Node.js npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated npmlog@6.0.2: This package is no longer supported. npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated gauge@4.0.4: This package is no longer supported. npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm warn deprecated u/npmcli/move-file@1.1.2: This functionality has been moved to u/npmcli/fs npm error code 1 npm error path /opt/paperless-ai/node_modules/sqlite3 npm error command failed npm error command sh -c prebuild-install -r napi || node-gyp rebuild npm error prebuild-install warn This package does not support N-API version undefined npm error prebuild-install warn install No prebuilt binaries found (target=undefined runtime=napi arch=x64 libc= platform=linux) npm error gyp info it worked if it ends with ok npm error gyp info using node-gyp@8.4.1 npm error gyp info using node@22.14.0 | linux | x64 npm error (node:5108) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead. npm error (Use node --trace-deprecation ... to show where the warning was created) npm error gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3" npm error gyp http GET https://nodejs.org/download/release/v22.14.0/node-v22.14.0-headers.tar.gz npm error gyp http 200 https://nodejs.org/download/release/v22.14.0/node-v22.14.0-headers.tar.gz npm error gyp http GET https://nodejs.org/download/release/v22.14.0/SHASUMS256.txt npm error gyp http 200 https://nodejs.org/download/release/v22.14.0/SHASUMS256.txt npm error gyp info spawn /usr/bin/python3 npm error gyp info spawn args [ npm error gyp info spawn args '/opt/paperless-ai/node_modules/node-gyp/gyp/gyp_main.py', npm error gyp info spawn args 'binding.gyp', npm error gyp info spawn args '-f', npm error gyp info spawn args 'make', npm error gyp info spawn args '-I', npm error gyp info spawn args '/opt/paperless-ai/node_modules/sqlite3/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/opt/paperless-ai/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/root/.cache/node-gyp/22.14.0/include/node/common.gypi', npm error gyp info spawn args '-Dlibrary=shared_library', npm error gyp info spawn args '-Dvisibility=default', npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/22.14.0', npm error gyp info spawn args '-Dnode_gyp_dir=/opt/paperless-ai/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/22.14.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/opt/paperless-ai/node_modules/sqlite3', npm error gyp info spawn args '-Dnode_engine=v8', npm error gyp info spawn args '--depth=.', npm error gyp info spawn args '--no-parallel', npm error gyp info spawn args '--generator-output', npm error gyp info spawn args 'build', npm error gyp info spawn args '-Goutput_dir=.' npm error gyp info spawn args ] npm error gyp ERR! build error npm error gyp ERR! stack Error: not found: make npm error gyp ERR! stack at getNotFoundError (/opt/paperless-ai/node_modules/which/which.js:10:17) npm error gyp ERR! stack at /opt/paperless-ai/node_modules/which/which.js:57:18 npm error gyp ERR! stack at new Promise () npm error gyp ERR! stack at step (/opt/paperless-ai/node_modules/which/which.js:54:21) npm error gyp ERR! stack at /opt/paperless-ai/node_modules/which/which.js:71:22 npm error gyp ERR! stack at new Promise () npm error gyp ERR! stack at subStep (/opt/paperless-ai/node_modules/which/which.js:69:33) npm error gyp ERR! stack at /opt/paperless-ai/node_modules/which/which.js:80:22 npm error gyp ERR! stack at /opt/paperless-ai/node_modules/isexe/index.js:42:5 npm error gyp ERR! stack at /opt/paperless-ai/node_modules/isexe/mode.js:8:5 npm error gyp ERR! System Linux 6.8.12-5-pve npm error gyp ERR! command "/usr/bin/node" "/opt/paperless-ai/node_modules/.bin/node-gyp" "rebuild" npm error gyp ERR! cwd /opt/paperless-ai/node_modules/sqlite3 npm error gyp ERR! node -v v22.14.0 npm error gyp ERR! node-gyp -v v8.4.1 npm error gyp ERR! not ok npm notice npm notice New major version of npm available! 10.9.2 -> 11.1.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0 npm notice To update run: npm install -g npm@11.1.0 npm notice npm error A complete log of this run can be found in: /root/.npm/_logs/2025-02-11T20_22_18_427Z-debug-0.log ⠏ [ERROR] in line 41: exit code 0: while executing command $STD npm install root@sol:~# ### 🖼️ Additional context (optional). _No response_
Author
Owner

@MickLesk commented on GitHub (Feb 12, 2025):

Looks Like DNS issue. I cant reproduce this

@MickLesk commented on GitHub (Feb 12, 2025): Looks Like DNS issue. I cant reproduce this
Author
Owner

@MickLesk commented on GitHub (Feb 12, 2025):

done - i found an issue with the newer version

@MickLesk commented on GitHub (Feb 12, 2025): done - i found an issue with the newer version
Author
Owner

@Comma28 commented on GitHub (Feb 12, 2025):

I'm having the exact same issue with the MySpeedLXC, in line 45.

@Comma28 commented on GitHub (Feb 12, 2025): I'm having the exact same issue with the [MySpeedLXC](https://community-scripts.github.io/ProxmoxVE/scripts?id=myspeed), in line 45.
Author
Owner

@MickLesk commented on GitHub (Feb 12, 2025):

I'm having the exact same issue with the MySpeedLXC, in line 45.

Create an issue not random in closed completly other issues

@MickLesk commented on GitHub (Feb 12, 2025): > I'm having the exact same issue with the [MySpeedLXC](https://community-scripts.github.io/ProxmoxVE/scripts?id=myspeed), in line 45. Create an issue not random in closed completly other issues
Author
Owner

@TranceKat1200 commented on GitHub (Feb 13, 2025):

done - i found an issue with the newer version

Thank you for your help and time making this script. Very appreciated.

@TranceKat1200 commented on GitHub (Feb 13, 2025): > done - i found an issue with the newer version Thank you for your help and time making this script. Very appreciated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#485