Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Fails with Error Code 127 and 'node not found' #1

Open
M3cubo opened this issue Jun 8, 2024 · 4 comments
Open

Installation Fails with Error Code 127 and 'node not found' #1

M3cubo opened this issue Jun 8, 2024 · 4 comments

Comments

@M3cubo
Copy link

M3cubo commented Jun 8, 2024

Hello, this utility looks incredible.

I am encountering an installation error when trying to install the ascii-silhouettify package globally using npm. Below are the details of the error:

  • Command: sudo /home/mint/.nvm/versions/node/v22.2.0/bin/node /home/mint/.nvm/versions/node/v22.2.0/bin/npm install -g ascii-silhouettify
  • Node Version: v22.2.0
  • NPM Version: 10.8.1
  • Operating System: Linux Mint
  • Error Output:
    /Escritorio$ sudo /home/mint/.nvm/versions/node/v22.2.0/bin/node /home/mint/.nvm/versions/node/v22.2.0/bin/npm install -g ascii-silhouettify
    npm error code 127
    npm error path /home/mint/.nvm/versions/node/v22.2.0/lib/node_modules/ascii-silhouettify/node_modules/sharp
    npm error command failed
    npm error command sh -c node install/check
    npm error sh: 1: node: not found
    npm error A complete log of this run can be found in: /root/.npm/_logs/2024-06-08T20_07_25_739Z-debug-0.log

The log that the command refer:

398 verbose pkgid [email protected]
399 error code 127
400 error path /home/mint/.nvm/versions/node/v22.2.0/lib/node_modules/ascii-silhouettify/node_modules/sharp
401 error command failed
402 error command sh -c node install/check
403 error sh: 1: node: not found
404 silly unfinished npm timer reify 1717877245893
405 silly unfinished npm timer reify:build 1717877295417
406 silly unfinished npm timer build 1717877295418
407 silly unfinished npm timer build:deps 1717877295418
408 silly unfinished npm timer build:run:install 1717877295421
409 silly unfinished npm timer build:run:install:node_modules/ascii-silhouettify/node_modules/sharp 1717877295421
410 verbose cwd /home/mint/Escritorio
411 verbose os Linux 5.15.0-101-generic
412 verbose node v22.2.0
413 verbose npm v10.8.1
414 verbose exit 127
415 verbose code 127
416 error A complete log of this run can be found in: /root/.npm/_logs/2024-06-08T20_07_25_739Z-debug-0.log

@meatfighter
Copy link
Owner

meatfighter commented Jun 8, 2024 via email

@M3cubo
Copy link
Author

M3cubo commented Jun 8, 2024

I have used "sudo"

sudo /home/mint/.nvm/versions/node/v22.2.0/bin/node /home/mint/.nvm/versions/node/v22.2.0/bin/npm install -g ascii-silhouettify

@meatfighter
Copy link
Owner

meatfighter commented Jun 9, 2024 via email

@M3cubo
Copy link
Author

M3cubo commented Jun 9, 2024

Thanks @meatfighter

In my case, I was able to install using:

npx npm install -g ascii-silhouettify

And then, I have to manually set as executable the file:

/home/mint/.nvm/versions/node/v22.2.0/bin/ascii-silhouettify

So it is solved for me. Thanks, and great utility!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants