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

Can't install Yeoman despite up to date Node and Npm #778

Open
AmberRM99 opened this issue Jan 6, 2023 · 1 comment
Open

Can't install Yeoman despite up to date Node and Npm #778

AmberRM99 opened this issue Jan 6, 2023 · 1 comment

Comments

@AmberRM99
Copy link

Error

Yeoman previously successfully installed and ran on the computer. Yesterday it was noted the Yo commands were no longer found, nor the Yo version despite not being uninstalled or files altered since last use. An attempt has been made to reinstall yeoman as it was no longer recognised, but it now appears impossible to install.


My environment

  • OS version/details: Mac OS Ventura 13.0.1
  • Node version: v19.3.0
  • npm version: 9.2.0
  • Version of yo : N/A

Expected behavior

  1. Update/Install Node to ensure up to date version
  2. Run npm install -g yo
  3. The terminal displays progress and confirms installation or shows an error
  4. Running yo --version reveals current version as proof of install

Current behavior

  1. Clean reinstall of Node via Homebrew to ensure no errors
  2. Run npm install -g yo
  3. Terminal doesn't indicate errors and appears successful installation
  4. Yo commands are unsuccessful and 'command not found' is displayed

Steps to reproduce the behavior

Follow Tutorials set out at https://yeoman.io/learning/ or in the github

install yo
npm install --global yo

install a generator
npm install --global generator-webapp

 run it
yo webapp

Command line output

Installation:

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs

changed 719 packages in 10s

80 packages are looking for funding
  run npm fund for details

But when checking version or trying to run other yo commands:
-bash: yo: command not found

@ruyadorno
Copy link

Alternatively, does running npm exec --package=yo --package=generator-webapp -- yo webapp works for you?

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