[GH-ISSUE #2143] Installation failed via npm i -g #1324

Closed
opened 2026-02-27 00:03:06 +03:00 by kerem · 1 comment
Owner

Originally created by @rapha8l on GitHub (May 18, 2021).
Original GitHub issue: https://github.com/electerm/electerm/issues/2143

Hi,

I'm trying to install electerm via root on Void Linux
I get this

npm i -g electerm

/usr/bin/electerm -> /usr/lib/node_modules/electerm/npm/electerm

electerm@1.10.4 postinstall /usr/lib/node_modules/electerm
node npm/install.js

downloading https://github.com/electerm/electerm/releases/download/v1.12.24/electerm-1.12.24-linux-x64.tar.gz
(node:21356) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electerm/electerm-1.12.24-linux-x64'
(Use node --trace-warnings ... to show where the warning was created)
(node:21356) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:21356) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

  • electerm@1.10.4

Part of the package is written, but not enough to make it run

Thanks

Originally created by @rapha8l on GitHub (May 18, 2021). Original GitHub issue: https://github.com/electerm/electerm/issues/2143 Hi, I'm trying to install electerm via root on Void Linux I get this > npm i -g electerm > > /usr/bin/electerm -> /usr/lib/node_modules/electerm/npm/electerm > > > electerm@1.10.4 postinstall /usr/lib/node_modules/electerm > > node npm/install.js > > downloading https://github.com/electerm/electerm/releases/download/v1.12.24/electerm-1.12.24-linux-x64.tar.gz > (node:21356) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electerm/electerm-1.12.24-linux-x64' > (Use `node --trace-warnings ...` to show where the warning was created) > (node:21356) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) > (node:21356) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. > + electerm@1.10.4 > Part of the package is written, but not enough to make it run Thanks
kerem 2026-02-27 00:03:06 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@zxdong262 commented on GitHub (May 26, 2021):

I see, I would suggest you install npm/nodejs with nvm, which only use local user permission, then npm i -g will not encounter permission issue.

<!-- gh-comment-id:848405489 --> @zxdong262 commented on GitHub (May 26, 2021): I see, I would suggest you install npm/nodejs with [nvm](https://github.com/nvm-sh/nvm), which only use local user permission, then `npm i -g` will not encounter permission issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1324
No description provided.