Deployed NodeJS application to Azure from VS Code like mentioned here: Deploy NodeJS app to Azure from VS Code successfully - first initial commit:
$ git push azure master
remote: Updating branch 'master'.
remote: Updating submodules.
npm install dotenv-extended
remote: Updating submodules
P.S. Think proposed solution
Git push to azure websites with submodule will not work as Git Azure
erases modules for some reason.
Seems some Azure issue. Following sequence helped me to solve the issue:
App Service Editorin Azure,
npm install npm -gfor latest npm
Error: Cannot find module 'async'- same bug as I got with
npm install async
Works fine now after all of above. People suggest to commit
package-lock.json, however this solution had not helped me: Azure deployment script uninstalled
async and I got above error.