none
[Node.js][Web Apps] Steps needed to install Loopback App to Azure Web App? RRS feed

  • Question

  • I am unable to deploy a loopback app and could use some one's help. After following the instructions here: https://azure.microsoft.com/en-us/documentation/articles/app-service-web-nodejs-get-started/ and even trying out the recommendation here:https://github.com/masonkmeyer/loopback-azure , I am still receiving the console message  Error - Changes committed to remote repository but deployment to website failed.

    *app runs on localhost and the node modules directory was included in the deployment.

    IIS Log

    Mon May 02 2016 18:07:49 GMT+0000 (Coordinated Universal Time): Unaught exception: Error: Cannot find module 'loopback'
        at Function.Module._resolveFilename (module.js:337:15)
        at Function.Module._load (module.js:287:25)
        at Module.require (module.js:366:17)
        at require (module.js:385:17)
        at Object.<anonymous> (D:\home\site\wwwroot\server\server.js:1:78)
        at Module._compile (module.js:435:26)
        at Object.Module._extensions..js (module.js:442:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:311:12)
        at Module.require (module.js:366:17)




    Monday, May 2, 2016 8:05 PM

Answers

  • Thanks so much for taking the time to reply. Your confirmation of being able to deploy the git repo really helped me. After cloning the repo and pushing it to Azure I received an error message (seen below). See help npm config was the key. Setting the registry [npm config set registry http://registry.npmjs.org/] fixed the problem and now I am able to deploy the app successfully.

    remote: npm ERR! code ECONNRESET
    remote: npm ERR! errno ECONNRESET
    remote: npm ERR! syscall read
    remote:
    remote: npm ERR! network read ECONNRESET
    remote: npm ERR! network This is most likely not a problem with npm itself
    remote: npm ERR! network and is related to network connectivity.
    remote: npm ERR! network In most cases you are behind a proxy or have bad network settings.
    remote: npm ERR! network
    remote: npm ERR! network If you are behind a proxy, please make sure that the
    remote: npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

     
    • Marked as answer by jlister469 Tuesday, May 3, 2016 7:16 AM
    Tuesday, May 3, 2016 7:13 AM

All replies

  • How do you deploy your application to Azure?

    As I download the test application from its repository at https://github.com/masonkmeyer/loopback-azure, then use git to deploy to Azure. Everything works fine on my side.

    Meanwhile, you can leverage Visual Studio online extension https://blogs.msdn.microsoft.com/monaco/2014/06/25/how-to-access-visual-studio-online-monaco-from-the-new-azure-portal/ to check whether you have successfully install modules on Azure Web Apps. 

    Tuesday, May 3, 2016 2:46 AM
    Moderator
  • Thanks so much for taking the time to reply. Your confirmation of being able to deploy the git repo really helped me. After cloning the repo and pushing it to Azure I received an error message (seen below). See help npm config was the key. Setting the registry [npm config set registry http://registry.npmjs.org/] fixed the problem and now I am able to deploy the app successfully.

    remote: npm ERR! code ECONNRESET
    remote: npm ERR! errno ECONNRESET
    remote: npm ERR! syscall read
    remote:
    remote: npm ERR! network read ECONNRESET
    remote: npm ERR! network This is most likely not a problem with npm itself
    remote: npm ERR! network and is related to network connectivity.
    remote: npm ERR! network In most cases you are behind a proxy or have bad network settings.
    remote: npm ERR! network
    remote: npm ERR! network If you are behind a proxy, please make sure that the
    remote: npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

     
    • Marked as answer by jlister469 Tuesday, May 3, 2016 7:16 AM
    Tuesday, May 3, 2016 7:13 AM