Manual Installation fails with missing modules #466

Closed
opened 2026-02-04 19:45:19 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @nicedevil007 on GitHub (Apr 8, 2024).

Hi there,

I use Planka 1.16.2 and wanted to install it on my AlmaLinux 9.3 (like CentOS 9).

I was able to install npm/nodejs with NVM, tryed version 18 and 20 with both the same error. Hope someone can help.

[planka@planka planka]$ npm install
npm ERR! code 1
npm ERR! path /opt/planka/node_modules/bcrypt
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! node:internal/modules/cjs/loader:451
npm ERR!       throw err;
npm ERR!       ^
npm ERR! 
npm ERR! Error: Cannot find module '/opt/planka/node_modules/util-deprecate/node.js'. Please verify that the package.json has a valid "main" entry
npm ERR!     at tryPackage (node:internal/modules/cjs/loader:443:19)
npm ERR!     at Module._findPath (node:internal/modules/cjs/loader:714:18)
npm ERR!     at Module._resolveFilename (node:internal/modules/cjs/loader:1129:27)
npm ERR!     at Module._load (node:internal/modules/cjs/loader:984:27)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1231:19)
npm ERR!     at require (node:internal/modules/helpers:179:18)
npm ERR!     at Object.<anonymous> (/opt/planka/node_modules/readable-stream/lib/_stream_writable.js:60:14)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1369:14)
npm ERR!     at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:1206:32) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   path: '/opt/planka/node_modules/util-deprecate/package.json',
npm ERR!   requestPath: 'util-deprecate'
npm ERR! }
npm ERR! 
npm ERR! Node.js v20.12.1
Originally created by @nicedevil007 on GitHub (Apr 8, 2024). Hi there, I use Planka 1.16.2 and wanted to install it on my AlmaLinux 9.3 (like CentOS 9). I was able to install npm/nodejs with NVM, tryed version 18 and 20 with both the same error. Hope someone can help. ```bash [planka@planka planka]$ npm install npm ERR! code 1 npm ERR! path /opt/planka/node_modules/bcrypt npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! node:internal/modules/cjs/loader:451 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module '/opt/planka/node_modules/util-deprecate/node.js'. Please verify that the package.json has a valid "main" entry npm ERR! at tryPackage (node:internal/modules/cjs/loader:443:19) npm ERR! at Module._findPath (node:internal/modules/cjs/loader:714:18) npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1129:27) npm ERR! at Module._load (node:internal/modules/cjs/loader:984:27) npm ERR! at Module.require (node:internal/modules/cjs/loader:1231:19) npm ERR! at require (node:internal/modules/helpers:179:18) npm ERR! at Object.<anonymous> (/opt/planka/node_modules/readable-stream/lib/_stream_writable.js:60:14) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1369:14) npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:1206:32) { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! path: '/opt/planka/node_modules/util-deprecate/package.json', npm ERR! requestPath: 'util-deprecate' npm ERR! } npm ERR! npm ERR! Node.js v20.12.1 ```
Author
Owner

@nicedevil007 commented on GitHub (Apr 8, 2024):

fixed it with switching to ubuntu.

@nicedevil007 commented on GitHub (Apr 8, 2024): fixed it with switching to ubuntu.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#466