BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

Error Calling npm to fetch template.

Open thegreenguy4201 opened this issue 10 months ago • 5 comments

Receiving an error when I try to create a Core Assistant Bot saying "Error calling npm to fetch template......." I've installed npm and node.

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\mwmin\AppData\Roaming\BotFrameworkComposer.yo-repository --loglevel error --no-optional @microsoft/generator-bot-core-assistant@*

Version: 2.1.2 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0

Browser

  • [ X] Chrome

OS

  • [ X] Windows

To Reproduce

Steps to reproduce the behavior:

  1. Go to Bot Framework Composer Home Page
  2. Click on 'Create a new bot to get started'
  3. Scroll down to 'Core Assistant Bot' and select
  4. Click Next
  5. Update Project Name
  6. Click Download Template
  7. Error Reads as Follows: 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\mwmin\AppData\Roaming\BotFrameworkComposer.yo-repository --loglevel error --no-optional @microsoft/generator-bot-core-assistant@*

Expected behavior - Download Core Assistant Bot Template

Screenshots

Additional context

thegreenguy4201 avatar Apr 10 '24 22:04 thegreenguy4201

Under Composer's main settings; for Template Feed Url, do you have https://registry.npmjs.org/-/v1/search?text=generator+keywords:bf-template+scope:microsoft configured?

dmvtech avatar Apr 11 '24 18:04 dmvtech

I'm very new to this and don't know what you're asking. How can I confirm is it is configured?

thegreenguy4201 avatar Apr 11 '24 18:04 thegreenguy4201

@thegreenguy4201 No worries.

Hope this helps: image

Just wanted to see if yours matches what is in my screenshot above.

dmvtech avatar Apr 11 '24 18:04 dmvtech

Yes. Mine matches your screenshot

thegreenguy4201 avatar Apr 11 '24 18:04 thegreenguy4201

Please refer to the issue #9745

OEvgeny avatar May 21 '24 00:05 OEvgeny

Closing as likely resolved in nightly. If you are still having issues, please comment and we can reopen/continue.

dmvtech avatar Jul 23 '24 22:07 dmvtech