How to fix node version problem while executing npm install -g @microsoft/botframework-cli

Govindappa, Shylaja 5 Reputation points
2024-02-08T18:51:56.6933333+00:00

I am trying execute the command npm install -g @microsoft/botframework-cli, using node version 18 as it was the expected version, later the command throws an error saying that it needs14 . But after using node 14 and the command throws the error saying it needs node 18 and above. note : I have tried running clearing the cache and executed with node versions 12 , 16 , 18 , 20. Still no results.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
747 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Govindappa, Shylaja 5 Reputation points
    2024-02-13T11:23:54.7333333+00:00

    HI @romungi-MSFT, I executed suceesfully my making below changes. 1.//engine-strict=true removed this line from .npmrc file. 2.Used node verion 16. 3. npm i -g @microsoft/botframework-cli --target_arch=x64 (changed the command to run on x86 arch, even i tried changing the arch with external command it did not help). 4. When we r building schema we shud make sure that we are on x86 arch .. if not the bf folder which would be created during installing cli wil not be accessible.

    0 comments No comments