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

Error calling npm to fetch template. Full error message: Command failed with exit code #9769

Open
ArturMarins777 opened this issue Sep 10, 2024 · 4 comments
Labels
Needs-triage A new issue that require triage

Comments

@ArturMarins777
Copy link

ArturMarins777 commented Sep 10, 2024

Please, im in need of help. I Don't know what to do. When trying to create a new bot this error comes in.
I have faced another error related to node.js installation, but i've alredy installed it and now this error comes:

If this problem persists, please file an issue on GitHub
Saiba mais
Error calling npm to fetch template. Please ensure that node and npm are installed and available on your system. Full error message: Command failed with exit code 1: npm install -g --prefix C:\Users\xxx\AppData\Roaming\BotFrameworkComposer.yo-repository --loglevel error --no-optional @microsoft/generator-bot-empty@*

Tasks

Preview Give feedback
No tasks being tracked yet.
@ArturMarins777 ArturMarins777 added the Needs-triage A new issue that require triage label Sep 10, 2024
@paulks-software
Copy link

same Error calling npm to fetch template. Please ensure that node and npm are installed and available on your system. Full error message: Command failed with ENOENT: npm root -g --prefix

@dmvtech
Copy link

dmvtech commented Dec 23, 2024

Please run the following commands and report what is returned:

  • npm -v
  • node -v

Also, if you try and run the command on its own, does it work?
npm install -g --prefix %userprofile%\AppData\Roaming\BotFrameworkComposer.yo-repository --loglevel error --no-optional @microsoft/generator-bot-empty@*

@MatsEReed
Copy link

Please run the following commands and report what is returned:

  • npm -v
  • node -v

Also, if you try and run the command on its own, does it work? npm install -g --prefix %userprofile%\AppData\Roaming\BotFrameworkComposer.yo-repository --loglevel error --no-optional @microsoft/generator-bot-empty@*

I am also having this issue. When I run the original script (https://nodejs.org/en/download/package-manager) in PowerShell (as an admin!), it returns:

v22.12.0
10.9.0

I then ran the npm command you referenced above, and it installed packages. Also notified me that npm v11.0 is available, so I ran that.

But once I close the shell and run the Bot Framework Composer, it continues to give the same error. If I then re-open PowerShell, the npm -v command returns an error that no such file is found.

@dmvtech
Copy link

dmvtech commented Dec 27, 2024

Hi all.

 
@ArturMarins777
Are you able to run the command outside of Composer? (With the correct path)

@paulks-software

Your error does not appear to be the exact same as the original, but similar. Yours appears to possibly be a related to permissions or pathing. Can you try and run the command but with a path that you can ensure has full permissions (for example create a folder in the root of the drive and permissions for all users and then run npm install -g --prefix <CREATEDFOLDERPATH> --loglevel error --no-optional @microsoft/generator-bot-empty@*)

@MatsEReed

Did you replace %userprofile% with $env:userprofile? If you're using Powershell, the former won't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-triage A new issue that require triage
Projects
None yet
Development

No branches or pull requests

4 participants