MicrosoftDocs / composer-docs

Public sync of existing composer-docs-pr repo
Creative Commons Attribution 4.0 International
2 stars 5 forks source link

Error installing botframework-cli #202

Open Pingulea opened 2 years ago

Pingulea commented 2 years ago

When I'm trying to install the NPM package with npm i -g @microsoft/botframework-cli, I get errors. Probably coming from

response status 404 Not Found on https://bcmodelsprod.azureedge.net/native/orchestrator-core-v4.14.3-node-v102-win32-x64.tar.gz

The full output of the above command is:

PS H:\Temp\Composer-Bots\TestBot\TestBot\schemas> npm i -g @microsoft/botframework-cli
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@microsoft/bf-orchestrator-cli@4.15.0',
npm WARN EBADENGINE   required: { node: '^10.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0' },
npm WARN EBADENGINE   current: { node: 'v17.1.0', npm: '8.1.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@microsoft/bf-orchestrator@4.15.0',
npm WARN EBADENGINE   required: { node: '^10.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0' },
npm WARN EBADENGINE   current: { node: 'v17.1.0', npm: '8.1.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@microsoft/orchestrator-core@4.14.3',
npm WARN EBADENGINE   required: { node: '^10.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^16.0.0' },
npm WARN EBADENGINE   current: { node: 'v17.1.0', npm: '8.1.2' }
npm WARN EBADENGINE }
npm WARN deprecated cli-ux@4.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated cli-ux@5.3.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated cli-ux@5.6.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm ERR! code 1
npm ERR! path E:\AppData\Viore\Roaming\npm\node_modules\@microsoft\botframework-cli\node_modules\@microsoft\orchestrator-core
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install
npm ERR! response status 404 Not Found on https://bcmodelsprod.azureedge.net/native/orchestrator-core-v4.14.3-node-v102-win32-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.9
npm ERR! node-pre-gyp info using node@17.1.0 | win32 | x64
npm ERR! node-pre-gyp info check checked for "E:\AppData\Viore\Roaming\npm\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.3-node-v102-win32-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.3-node-v102-win32-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.3-node-v102-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! stack     at E:\AppData\Viore\Roaming\npm\node_modules\@microsoft\botframework-cli\node_modules\@mapbox\node-pre-gyp\lib\install.js:67:15
npm ERR! node-pre-gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19044
npm ERR! node-pre-gyp ERR! command "E:\\Program Files\\nodejs\\node.exe" "E:\\AppData\\Viore\\Roaming\\npm\\node_modules\\@microsoft\\botframework-cli\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install"
npm ERR! node-pre-gyp ERR! cwd E:\AppData\Viore\Roaming\npm\node_modules\@microsoft\botframework-cli\node_modules\@microsoft\orchestrator-core
npm ERR! node-pre-gyp ERR! node -v v17.1.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\viore\AppData\Local\npm-cache\_logs\2022-06-20T09_27_06_783Z-debug.log
PS H:\Temp\Composer-Bots\TestBot\TestBot\schemas>

PowerShell in Admin console, the Execution Policy was set to Unrestricted for the scope Process.

Subsequently, I can't merge the Schemas:

PS H:\Temp\Composer-Bots\TestBot\TestBot\schemas> .\update-schema.ps1
Running schema merge.
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'E:\AppData\Viore\Roaming\npm\node_modules\@microsoft\botframework-cli\bin\run'
←[90m    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m
←[90m    at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m
←[90m    at node:internal/main/run_main_module:17:47←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: []
}

Node.js v17.1.0
Schema merge failed. Restoring previous versions.
PS H:\Temp\Composer-Bots\TestBot\TestBot\schemas>

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

emgrol commented 2 years ago

@Pingulea Are you still experiencing this issue? I tried to reproduce it but was able to run the command successfully.

Tagged the support team for further assistance.

Pingulea commented 1 year ago

Yup. this still happens. This time, let me add (attach) the log generated when the command is run. 2022-09-26T15_04_13_667Z-debug-0.log