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 #735

Open
swahpy opened this issue Feb 11, 2022 · 3 comments
Open

Installation fails #735

swahpy opened this issue Feb 11, 2022 · 3 comments

Comments

@swahpy
Copy link

swahpy commented Feb 11, 2022

My environment

  • OS version/details: SLES15-SP1
  • Node version: v17.4.0
  • npm version: 8.4.1
  • Version of yo : -bash: yo: command not found

Expected behavior

I'm using npm install -g yo to install Yeoman, as expected it should be installed successfully.

Current behavior

Installation failed with errors.

Steps to reproduce the behavior

npm install -g yo

Command line output

npm ERR! path /root/.nvm/versions/node/v17.4.0/lib/node_modules/yo
npm ERR! command failed
npm ERR! command sh -c yodoctor
npm ERR! sh: yodoctor: command not found

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-02-11T03_10_24_542Z-debug-0.log```
@kanlukasz
Copy link

Have you tried to install yo as root?
I mean: sudo npm install -g yo

@licensedslacker
Copy link

I had similar problem on Ubuntu 22.04 using node v18.18.0 provided by snap. I installed yarn first and then installed yeoman by using the command sudo yarn global add yo. The installation completes successfully after that. No clue why the npm not able to complete the installation.

@mvsenin
Copy link

mvsenin commented Mar 27, 2024

Hi everyone,

Same issue:
image

Installing as root, so no doubt, it does not depend on that.

Any thoughts?

Thanks.

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

4 participants