yo icon indicating copy to clipboard operation
yo copied to clipboard

Installation fails

Open swahpy opened this issue 4 years ago • 3 comments

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```

swahpy avatar Feb 11 '22 03:02 swahpy

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

kanlukasz avatar Mar 18 '22 10:03 kanlukasz

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.

licensedslacker avatar Oct 20 '23 10:10 licensedslacker

Hi everyone,

Same issue: image

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

Any thoughts?

Thanks.

mvsenin avatar Mar 27 '24 15:03 mvsenin