0

npm i -g azure-functions-core-tools@3 --unsafe-perm true --force --trusted-host aunctionscdn.azureedge.net

Hi all, i have been trying to install azure-functions-core tools using above command behind my company proxy, but return this error. need some help on this. much appreciated:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/functionscdn.azureedge.net - Not found
npm ERR! 404 'functionscdn.azureedge.net@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

regards

sirimiri
  • 509
  • 2
  • 6
  • 18

1 Answers1

3

You can override the registry for specific scopes, if that's the easiest workaround. For example:

npm config set @types:registry https://registry.npmjs.org/

That would tell npm to always get anything for the @types scope directly from the official server on the internet. For more details, you could refer to this issue.

Joey Cai
  • 18,968
  • 1
  • 20
  • 30