install failure due to
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated [email protected]: 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)
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
Node 18.19 Ubuntu 24.04 (x86) GNOME 46
Yep, you'll need node.js >= 20, the prebuilt binaries are available for those versions only.
I've found the nodesource distributions to be a straightforward way to install more recent node versions on debian
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?
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 installThese also run when you runnpm install -g <pkg-name>preinstall..snip..
-
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 ?
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