0

I wanted to make a chatbot with(https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-dispatch?view=azure-bot-service-4.0&tabs=python)

The tutorial asks me to install botdispatch with npm. So I use "npm i -g npm" in cloud cli, but I can't do that due to permission denied.

Is there some way I can solve this in cloud cli? Or I need to install cli locally?Are there any differences between cloud cli and local cli?

1 Answer 1

1

The Azure Cloud CLI is a sandbox environment. You do not have admin privileges in this environment.

However, npm i -g will try to install module for global, which needs admin privilege. So the cmd will fail.

So, you may just remove -g in the cmd. And then specify the whole path of the js module. For example:

npm i botdispatch

./node_modules/botdispatch/bin/dispatch.js init -n <filename-to-create> --luisAuthoringKey "<your-luis-authoring-key>" --luisAuthoringRegion <your-region>

Or, you can use CLI and NPM locally, which will certainly work if you are the admin user.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.