Skip to content

[Bug]: Install Script, failure to finish #518

Description

@malanden1

Description

Install with script
Get errors

0 verbose cli /usr/bin/node-22 /usr/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:/usr/lib/node_modules_22/npm/npmrc
4 silly config load:file:/home/rocky/.npmrc
5 silly config load:file:/etc/npmrc
6 verbose title npm install
7 verbose argv "install" "--loglevel" "warn"
8 verbose logfile logs-max:10 dir:/home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-
9 verbose logfile /home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-debug-0.log
10 silly logfile done cleaning log files
11 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
12 silly idealTree buildDeps
13 silly reify moves {}
14 verbose stack Error: Could not read package.json: Error: ENOENT: no such file or directory, open '/home/rocky/package.json'
14 verbose stack at async open (node:internal/fs/promises:639:25)
14 verbose stack at async readFile (node:internal/fs/promises:1249:14)
14 verbose stack at async read (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/read-package.js:9:18)
14 verbose stack at async PackageJson.load (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/index.js:132:31)
14 verbose stack at async PackageJson.normalize (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/index.js:118:5)
14 verbose stack at async runScript (/usr/lib/node_modules_22/npm/node_modules/@npmcli/run-script/lib/run-script.js:11:28)
14 verbose stack at async Install.exec (/usr/lib/node_modules_22/npm/lib/commands/install.js:163:9)
14 verbose stack at async Npm.exec (/usr/lib/node_modules_22/npm/lib/npm.js:207:9)
14 verbose stack at async module.exports (/usr/lib/node_modules_22/npm/lib/cli/entry.js:74:5)
15 error code ENOENT
16 error syscall open
17 error path /home/rocky/package.json
18 error errno -2
19 error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/rocky/package.json'
20 error enoent This is related to npm not being able to find a file.
20 error enoent
21 verbose cwd /home/rocky
22 verbose os Linux 6.12.0-211.26.1.el10_2.x86_64
23 verbose node v22.22.2
24 verbose npm v10.9.7
25 verbose exit -2
26 verbose code -2
27 error A complete log of this run can be found in: /home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-debug-0.log

[rocky@vps-4f4d6b68 ~]$ npm start
npm error code ENOENT
npm error syscall open
npm error path /home/rocky/package.json
npm error errno -2
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/rocky/package.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: /home/rocky/.npm/_logs/2026-06-28T19_43_00_487Z-debug-0.log

Steps to Reproduce

Run install script, not as root

Expected Behavior

functioning install

Actual Behavior

See logs below
0 verbose cli /usr/bin/node-22 /usr/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:/usr/lib/node_modules_22/npm/npmrc
4 silly config load:file:/home/rocky/.npmrc
5 silly config load:file:/etc/npmrc
6 verbose title npm install
7 verbose argv "install" "--loglevel" "warn"
8 verbose logfile logs-max:10 dir:/home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-
9 verbose logfile /home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-debug-0.log
10 silly logfile done cleaning log files
11 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
12 silly idealTree buildDeps
13 silly reify moves {}
14 verbose stack Error: Could not read package.json: Error: ENOENT: no such file or directory, open '/home/rocky/package.json'
14 verbose stack at async open (node:internal/fs/promises:639:25)
14 verbose stack at async readFile (node:internal/fs/promises:1249:14)
14 verbose stack at async read (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/read-package.js:9:18)
14 verbose stack at async PackageJson.load (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/index.js:132:31)
14 verbose stack at async PackageJson.normalize (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/index.js:118:5)
14 verbose stack at async runScript (/usr/lib/node_modules_22/npm/node_modules/@npmcli/run-script/lib/run-script.js:11:28)
14 verbose stack at async Install.exec (/usr/lib/node_modules_22/npm/lib/commands/install.js:163:9)
14 verbose stack at async Npm.exec (/usr/lib/node_modules_22/npm/lib/npm.js:207:9)
14 verbose stack at async module.exports (/usr/lib/node_modules_22/npm/lib/cli/entry.js:74:5)
15 error code ENOENT
16 error syscall open
17 error path /home/rocky/package.json
18 error errno -2
19 error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/rocky/package.json'
20 error enoent This is related to npm not being able to find a file.
20 error enoent
21 verbose cwd /home/rocky
22 verbose os Linux 6.12.0-211.26.1.el10_2.x86_64
23 verbose node v22.22.2
24 verbose npm v10.9.7
25 verbose exit -2
26 verbose code -2
27 error A complete log of this run can be found in: /home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-debug-0.log

Bulwark Version

main

Stalwart Mail Server Version

latest

Browser

No response

Operating System

Linux

Screenshots / Screen Recording

No response

Relevant Logs or Error Output

0 verbose cli /usr/bin/node-22 /usr/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:/usr/lib/node_modules_22/npm/npmrc
4 silly config load:file:/home/rocky/.npmrc
5 silly config load:file:/etc/npmrc
6 verbose title npm install
7 verbose argv "install" "--loglevel" "warn"
8 verbose logfile logs-max:10 dir:/home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-
9 verbose logfile /home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-debug-0.log
10 silly logfile done cleaning log files
11 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
12 silly idealTree buildDeps
13 silly reify moves {}
14 verbose stack Error: Could not read package.json: Error: ENOENT: no such file or directory, open '/home/rocky/package.json'
14 verbose stack     at async open (node:internal/fs/promises:639:25)
14 verbose stack     at async readFile (node:internal/fs/promises:1249:14)
14 verbose stack     at async read (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/read-package.js:9:18)
14 verbose stack     at async PackageJson.load (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/index.js:132:31)
14 verbose stack     at async PackageJson.normalize (/usr/lib/node_modules_22/npm/node_modules/@npmcli/package-json/lib/index.js:118:5)
14 verbose stack     at async runScript (/usr/lib/node_modules_22/npm/node_modules/@npmcli/run-script/lib/run-script.js:11:28)
14 verbose stack     at async Install.exec (/usr/lib/node_modules_22/npm/lib/commands/install.js:163:9)
14 verbose stack     at async Npm.exec (/usr/lib/node_modules_22/npm/lib/npm.js:207:9)
14 verbose stack     at async module.exports (/usr/lib/node_modules_22/npm/lib/cli/entry.js:74:5)
15 error code ENOENT
16 error syscall open
17 error path /home/rocky/package.json
18 error errno -2
19 error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/rocky/package.json'
20 error enoent This is related to npm not being able to find a file.
20 error enoent
21 verbose cwd /home/rocky
22 verbose os Linux 6.12.0-211.26.1.el10_2.x86_64
23 verbose node v22.22.2
24 verbose npm  v10.9.7
25 verbose exit -2
26 verbose code -2
27 error A complete log of this run can be found in: /home/rocky/.npm/_logs/2026-06-28T19_36_26_049Z-debug-0.log

Additional Context

[rocky@vps-4f4d6b68 ~]$ npm start
npm error code ENOENT
npm error syscall open
npm error path /home/rocky/package.json
npm error errno -2
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/rocky/package.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: /home/rocky/.npm/_logs/2026-06-28T19_43_00_487Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions