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

Error calling npm to fetch template.\

Open k5reeves opened this issue 3 years ago • 7 comments

I am receiving the following error when attempting to create a new bot. Anyone have any idea how to resolve?

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

Microsoft Edge on Windows 10

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

k5reeves avatar Jul 06 '22 16:07 k5reeves

Hi @k5reeves

Please run each of the commands from a terminal and let us know the results:

  • npm -v
  • node -v

dmvtech avatar Jul 06 '22 16:07 dmvtech

npm -v = 8.13.2 node -v = 16.2.0

Keith Reeves

From: Dana V @.> Sent: Wednesday, July 6, 2022 11:47 AM To: microsoft/BotFramework-Composer @.> Cc: Reeves, Keith E @.>; Mention @.> Subject: Re: [microsoft/BotFramework-Composer] Error calling npm to fetch template.\ (Issue #9286)

Hi @k5reeveshttps://github.com/k5reeves

Please run each of the commands from a terminal and let us know the results:

  • npm -v
  • node -v

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/BotFramework-Composer/issues/9286#issuecomment-1176447557, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEJIFQ2TB62OUZXONFN6HITVSW2BLANCNFSM522JDVQQ. You are receiving this because you were mentioned.Message ID: @.@.>> This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or intended recipient’s authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.

k5reeves avatar Jul 06 '22 16:07 k5reeves

Thank you @k5reeves

Can you run the following command in an empty directory from a terminal? This is to ensure that npm is working normally:

npm install @microsoft/generator-bot-empty

Once complete, let me know if it was successful, or share what the error message is. Then you can delete that folder and it's contents.

dmvtech avatar Jul 11 '22 22:07 dmvtech

@.***

Keith Reeves | Experience Design Manager, Knowledge Management | Learning Solutions | UnitedHealthcare (office) 763-283-2326 | (email) @.@.> [LS_Expect Differently_email sig_v1]

From: Dana V @.> Sent: Monday, July 11, 2022 5:02 PM To: microsoft/BotFramework-Composer @.> Cc: Reeves, Keith E @.>; Mention @.> Subject: Re: [microsoft/BotFramework-Composer] Error calling npm to fetch template.\ (Issue #9286)

Thank you @k5reeveshttps://github.com/k5reeves

Can you run the following command in an empty directory from a terminal? This is to ensure that npm is working normally:

npm install @microsoft/generator-bot-empty

Once complete, let me know if it was successful, or share what the error message is. Then you can delete that folder and it's contents.

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/BotFramework-Composer/issues/9286#issuecomment-1180912979, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEJIFQ4O77X3GMHHKUPGDT3VTSKW7ANCNFSM522JDVQQ. You are receiving this because you were mentioned.Message ID: @.@.>> This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or intended recipient’s authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.

k5reeves avatar Jul 11 '22 22:07 k5reeves

Hi @k5reeves

I don't know if something went wrong, but I don't see the results from the terminal. All I see in your response is:

***@***.***

dmvtech avatar Jul 19 '22 16:07 dmvtech

C:\Users\kreeves4>npm install @microsoft/generator-bot-empty npm notice npm notice New major version of npm available! 7.13.0 -> 8.14.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.14.0 npm notice Run npm install -g @.@.> to update! npm notice

up to date, audited 708 packages in 3s

36 packages are looking for funding run npm fund for details

found 0 vulnerabilities

Keith Reeves | Experience Design Manager, Knowledge Management | Learning Solutions | UnitedHealthcare (office) 763-283-2326 | (email) @.@.> [LS_Expect Differently_email sig_v1]

From: Dana V @.> Sent: Tuesday, July 19, 2022 11:53 AM To: microsoft/BotFramework-Composer @.> Cc: Reeves, Keith E @.>; Mention @.> Subject: Re: [microsoft/BotFramework-Composer] Error calling npm to fetch template.\ (Issue #9286)

Hi @k5reeveshttps://github.com/k5reeves

I don't know if something went wrong, but I don't see the results from the terminal. All I see in your response is:

@.***mailto:***@***.***

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/BotFramework-Composer/issues/9286#issuecomment-1189330046, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEJIFQ5GFQQN3IMLKWIELJDVU3MQTANCNFSM522JDVQQ. You are receiving this because you were mentioned.Message ID: @.@.>> This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or intended recipient’s authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.

k5reeves avatar Jul 19 '22 16:07 k5reeves

Hi @k5reeves

Apologies for the delay. Can you please run the following, then re-launch Composer and then try again? npm install -g [email protected]

dmvtech avatar Aug 02 '22 17:08 dmvtech

Closing due to lack of response. If assistance is still needed, please comment with the findings and we will reopen.

dmvtech avatar Aug 15 '22 17:08 dmvtech

I’m not having any luck getting it to work. I now have the most up to date versions of npm and NodeJS but am still getting the exact error below.

npm install -g –prefix C:\Users\kreeves4\AppData\Roaming\BotFrameworkComposer.yo-repository --loglevel error --no-optional @microsoft/generator-bot-empty@*

Keith Reeves | Experience Design Manager, Knowledge Management | Learning Solutions | UnitedHealthcare (office) 763-283-2326 | (email) @.@.> [LS_Expect Differently_email sig_v1]

From: Dana V @.> Sent: Tuesday, August 2, 2022 12:24 PM To: microsoft/BotFramework-Composer @.> Cc: Reeves, Keith E @.>; Mention @.> Subject: Re: [microsoft/BotFramework-Composer] Error calling npm to fetch template.\ (Issue #9286)

Hi @k5reeveshttps://github.com/k5reeves

Apologies for the delay. Can you please run the following, then re-launch Composer and then try again? npm install -g @.@.>

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/BotFramework-Composer/issues/9286#issuecomment-1203012532, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEJIFQ6J5RM2JNUSXMEAHPLVXFKRPANCNFSM522JDVQQ. You are receiving this because you were mentioned.Message ID: @.@.>> This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or intended recipient’s authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.

k5reeves avatar Oct 11 '22 09:10 k5reeves