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

teamsfx command not found #4931

Closed
dluc opened this issue May 6, 2022 · 2 comments
Closed

teamsfx command not found #4931

dluc opened this issue May 6, 2022 · 2 comments

Comments

@dluc
Copy link

dluc commented May 6, 2022

Describe the bug
I use NVM to have multiple Node.js versions on my machine. When I use the teamsfx command under v16 I get an error because the version is not supported. When I switch to v14, I get an error command not found

To Reproduce

  1. nvm use v16
  2. teamsfx --version => OK
  3. nvm use v14
  4. teamsfx --version => error: "Command not found"
  5. npm install @microsoft/teamsfx
  6. teamsfx --version => error: "Command not found"
  7. npm install -g @microsoft/teamsfx
  8. teamsfx --version => error: "Command not found"
  9. nvm use v16
  10. teamsfx --version => OK

Expected behavior
After installing teamsfx I should be able to switch versions with NVM. It would be ok if I had to install it on each version, but that doesn't work either.

Screenshots
image

VS Code Extension Information (please complete the following information):
Using teamsfx from the command line

CLI Information (please complete the following information):

  • OS: macOS
  • Version 12.3.1
@ghost
Copy link

ghost commented May 6, 2022

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

@dluc
Copy link
Author

dluc commented May 6, 2022

nevermind, looks like I was looking for the wrong package. I uninstalled @microsoft/teamsfx-cli from v16 and installed it for v14 - that fixed the problem. Looking forward to get v16 fully supported.

@dluc dluc closed this as completed May 6, 2022
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

1 participant