[GH-ISSUE #71] install failure due to #36

Open
opened 2026-03-03 13:52:24 +03:00 by kerem · 8 comments
Owner

Originally created by @erkinalp on GitHub (Aug 29, 2024).
Original GitHub issue: https://github.com/jehna/humanify/issues/71

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 npmlog@6.0.2: This package is no longer supported.
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/humanifyjs/node_modules/isolated-vm
npm ERR! command failed
npm ERR! command sh -c prebuild-install || (node-gyp rebuild --release -j max && node-gyp clean)
Originally created by @erkinalp on GitHub (Aug 29, 2024). Original GitHub issue: https://github.com/jehna/humanify/issues/71 ``` 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 npmlog@6.0.2: This package is no longer supported. npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/humanifyjs/node_modules/isolated-vm npm ERR! command failed npm ERR! command sh -c prebuild-install || (node-gyp rebuild --release -j max && node-gyp clean) ```
Author
Owner

@0xdevalias commented on GitHub (Aug 30, 2024):

See also:


I don't think those deprecated packages are actually the source of your install failure here though; I think it's more related to isolated-vm.

Are you able to share more details about what system you are running this on, what version of node, etc?

I know isolated-vm is used by @j4k0xb 's webcrack (which this project uses), and I know I have seen other isolated-vm issues there before, so it might also help to have a look on there too:

<!-- gh-comment-id:2319720993 --> @0xdevalias commented on GitHub (Aug 30, 2024): See also: - https://github.com/jehna/humanify/issues/52 --- I don't think those deprecated packages are actually the source of your install failure here though; I think it's more related to `isolated-vm`. Are you able to share more details about what system you are running this on, what version of node, etc? I know `isolated-vm` is used by @j4k0xb 's `webcrack` (which this project uses), and I know I have seen other `isolated-vm` issues there before, so it might also help to have a look on there too: - https://github.com/j4k0xb/webcrack/issues?q=sort%3Aupdated-desc+isolated-vm
Author
Owner

@erkinalp commented on GitHub (Aug 31, 2024):

Node 18.19
Ubuntu 24.04 (x86)
GNOME 46

<!-- gh-comment-id:2322809220 --> @erkinalp commented on GitHub (Aug 31, 2024): Node 18.19 Ubuntu 24.04 (x86) GNOME 46
Author
Owner

@jehna commented on GitHub (Aug 31, 2024):

Yep, you'll need node.js >= 20, the prebuilt binaries are available for those versions only.

<!-- gh-comment-id:2322809816 --> @jehna commented on GitHub (Aug 31, 2024): Yep, you'll need node.js >= 20, the prebuilt binaries are available for those versions only.
Author
Owner

@jehna commented on GitHub (Aug 31, 2024):

I've found the nodesource distributions to be a straightforward way to install more recent node versions on debian

<!-- gh-comment-id:2322814964 --> @jehna commented on GitHub (Aug 31, 2024): I've found the [nodesource distributions](https://github.com/nodesource/distributions?tab=readme-ov-file#installation-instructions-deb) to be a straightforward way to install more recent node versions on debian
Author
Owner

@jehna commented on GitHub (Aug 31, 2024):

There is a note about needing node.js 20 in the readme, but it seems to be easy to miss. I wonder which place would be better. Maybe a preinstall hook thst ensures the version?

<!-- gh-comment-id:2322815477 --> @jehna commented on GitHub (Aug 31, 2024): There is a note about needing node.js 20 in the readme, but it seems to be easy to miss. I wonder which place would be better. Maybe a preinstall hook thst ensures the version?
Author
Owner

@0xdevalias commented on GitHub (Aug 31, 2024):

I wonder which place would be better.

@jehna Does the package.json engines field enforce it?

Sounds like it may only work when installed as a dependency, so maybe not when installed directly?


you'll need node.js >= 20, the prebuilt binaries are available for those versions only

There is a note about needing node.js 20 in the readme

@jehna What specifically needs node 20, is it humanify itself, or one of its dependencies? If dependency, I wonder if it would make sense to try and get the upstream projects to add the engines field?


@jehna Could also maybe use preinstall script in package.json?

<!-- gh-comment-id:2322823314 --> @0xdevalias commented on GitHub (Aug 31, 2024): > I wonder which place would be better. @jehna Does the `package.json` `engines` field enforce it? - https://docs.npmjs.com/cli/v10/configuring-npm/package-json#engines - > engines > You can specify the version of node that your stuff works on - > Unless the user has set the engine-strict config flag, this field is advisory only and will only produce warnings when your package is installed as a dependency. - https://stackoverflow.com/questions/28409883/how-to-specify-enforce-a-specific-node-js-version-to-use-in-package-json Sounds like it may only work when installed as a dependency, so maybe not when installed directly? --- > you'll need node.js >= 20, the prebuilt binaries are available for those versions only > There is a note about needing node.js 20 in the readme @jehna What specifically needs node 20, is it `humanify` itself, or one of its dependencies? If dependency, I wonder if it would make sense to try and get the upstream projects to add the `engines` field? --- @jehna Could also maybe use `preinstall` script in `package.json`? - https://docs.npmjs.com/cli/v10/using-npm/scripts#life-cycle-operation-order - > `npm install` > These also run when you run `npm install -g <pkg-name>` > - `preinstall` > ..snip..
Author
Owner

@neoOpus commented on GitHub (Sep 4, 2024):

There is a note about needing node.js 20 in the readme, but it seems to be easy to miss. I wonder which place would be better. Maybe a preinstall hook thst ensures the version?

So, you advise using this in WSL instead of directly on Windows NodeJS ?

<!-- gh-comment-id:2328180259 --> @neoOpus commented on GitHub (Sep 4, 2024): > There is a note about needing node.js 20 in the readme, but it seems to be easy to miss. I wonder which place would be better. Maybe a preinstall hook thst ensures the version? So, you advise using this in WSL instead of directly on Windows NodeJS ?
Author
Owner

@jehna commented on GitHub (Sep 4, 2024):

Unfortunately I have no idea how Windows works on development, the last time I used Windows as my main dev machine was over 10 years ago 😅

I'd guess both WSL and non-wsl should work fine, as long as you have recent enough version. You can use e.g. nvm to switch between versions on WSL

<!-- gh-comment-id:2329153373 --> @jehna commented on GitHub (Sep 4, 2024): Unfortunately I have no idea how Windows works on development, the last time I used Windows as my main dev machine was over 10 years ago 😅 I'd guess both WSL and non-wsl should work fine, as long as you have recent enough version. You can use e.g. [nvm](https://github.com/nvm-sh/nvm) to switch between versions on WSL
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/humanify#36
No description provided.