-
Notifications
You must be signed in to change notification settings - Fork 2
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
Comments
sudo
…________________________________
From: Martín ***@***.***>
Sent: Saturday, June 8, 2024 4:14 PM
To: meatfighter/quasar-ascii-silhouettify ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [meatfighter/quasar-ascii-silhouettify] Installation Fails with Error Code 127 and 'node not found' (Issue #1)
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 ***@***.***
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
—
Reply to this email directly, view it on GitHub<#1>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AM7MJEDAOTE6BN6AN75YOWLZGNQZNAVCNFSM6AAAAABJAHZVUWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DCOBRG43DINA>.
You are receiving this because you are subscribed to this thread.
|
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 |
You're right. Sorry about that.
It also looks like you have a recent version of node.
I'm not a npm deployment expert. The project depends on the sharp library. It's listed as an external dependency. But npm should pull it down automatically.
It is possible that root-privileged user doesn't have access to node because of a path issue. You can try something like:
sudo ln -s $(which node) /usr/bin/node
or
sudo env "PATH=$PATH" npm install -g ascii-silhouettify
You can also toss npx into the mix:
sudo npx npm install -g ascii-silhouettify
You might actually want to try it without sudo:
npm install -g ascii-silhouettify
…________________________________
From: Martín ***@***.***>
Sent: Saturday, June 8, 2024 4:55 PM
To: meatfighter/quasar-ascii-silhouettify ***@***.***>
Cc: zeroone ***@***.***>; Comment ***@***.***>
Subject: Re: [meatfighter/quasar-ascii-silhouettify] Installation Fails with Error Code 127 and 'node not found' (Issue #1)
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
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AM7MJEE7CVQOERYFRVPLNJ3ZGNVUHAVCNFSM6AAAAABJAHZVUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGE4DAMJYGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Thanks @meatfighter In my case, I was able to install using:
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! |
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: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
/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
The text was updated successfully, but these errors were encountered: