Installation fails
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```
Have you tried to install yo as root?
I mean: sudo npm install -g yo
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.
Hi everyone,
Same issue:
Installing as root, so no doubt, it does not depend on that.
Any thoughts?
Thanks.