Error when install @microsoft/botframework-cli

Sahanon Phisetpakasit 5 Reputation points
2023-05-25T05:30:45.0433333+00:00

Hi, I encountered this problem when I tried to install @microsoft/botframework-cli package by npm. My node version is 18.16.0.

Here's the error that I've found.

npm ERR! code 1

npm ERR! path /usr/local/lib/node_modules/@microsoft/botframework-cli/node_modules/@microsoft/orchestrator-core

npm ERR! command failed

npm ERR! command sh -c node-pre-gyp install

npm ERR! response status 404 Not Found on https://bcmodelsprod.azureedge.net/native/orchestrator-core-v4.14.4-node-v108-darwin-x64.tar.gz

npm ERR! node-pre-gyp info it worked if it ends with ok

npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10

npm ERR! node-pre-gyp info using node@18.16.0 | darwin | x64

npm ERR! node-pre-gyp info check checked for "/usr/local/lib/node_modules/@microsoft/botframework-cli/node_modules/@microsoft/orchestrator-core/orchestrator-core.node" (not found)

npm ERR! node-pre-gyp http GET https://bcmodelsprod.azureedge.net/native/orchestrator-core-v4.14.4-node-v108-darwin-x64.tar.gz

npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://bcmodelsprod.azureedge.net/native/orchestrator-core-v4.14.4-node-v108-darwin-x64.tar.gz

npm ERR! node-pre-gyp ERR! install error

npm ERR! node-pre-gyp ERR! stack Error: response status 404 Not Found on https://bcmodelsprod.azureedge.net/native/orchestrator-core-v4.14.4-node-v108-darwin-x64.tar.gz

npm ERR! node-pre-gyp ERR! stack     at /usr/local/lib/node_modules/@microsoft/botframework-cli/node_modules/@mapbox/node-pre-gyp/lib/install.js:67:15

npm ERR! node-pre-gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

npm ERR! node-pre-gyp ERR! System Darwin 22.4.0

npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/@microsoft/botframework-cli/node_modules/.bin/node-pre-gyp" "install"

npm ERR! node-pre-gyp ERR! cwd /usr/local/lib/node_modules/@microsoft/botframework-cli/node_modules/@microsoft/orchestrator-core

npm ERR! node-pre-gyp ERR! node -v v18.16.0

npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10

npm ERR! node-pre-gyp ERR! not ok

Thanks for help in advance.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
751 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,616 Reputation points
    2023-05-25T08:53:15.45+00:00

    @Sahanon Phisetpakasit Thanks for the question. We are able to install the @microsoft/botframework-cli successfully. You can try clearing the npm cache and then reinstalling the package. You can do this by running the following commands in your terminal:

    npm cache clean --force

    npm install -g @microsoft/botframework-cli

    If that doesn't work, you can try manually downloading the orchestrator-core package from a different source and placing it in the appropriate directory. You can find more information on how to do this in the npm documentation: https://docs.npmjs.com/cli/v7/commands/npm-install#description.