Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find module azure function double_edge.js

I have a trouble when I want to run locally an azure function in vscode or vs enterprise 2017, the error is:

enter image description here

I tried this and nothing work:

  1. Create a mklink to replace special characters in my name to can find the path.
  2. Change the route of the npm azure tools, so when I execute the command: npm root -g the path is a custom path that I created to the test, but the application still try to find in the error path.

The main error is the special symbols in my user name, the accent mark.

I don't know what I can do, sorry for my bad english


1 Answers

This issue is in the underlying dependencies of the core-tools, namely https://github.com/Azure/azure-functions-host which is using edgejs. And from this thread, you could try to download a zipfile manually from the URL specified here: https://aka.ms/functions-cli or download from the releases page: https://github.com/Azure/azure-functions-cli/releases, then install this tool in a different folder.

like image 125
Zhi Lv Avatar answered May 02 '26 20:05

Zhi Lv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!