none
[Node.js][Web Apps] Need to upgrade node-gyp on azure websites RRS feed

  • Question

  • I have a nodejs app running on azure websites, which I recently upgraded to node 4.0.0.

    Unfortunately, npm install (as run by the deployment script), fails with the following error:

    Error: 404 status code downloading 32-bit node.lib

    It seems the problem is related to this node-gyp issue, which seems to be corrected on the latest node-gyp version (Azure Websites tells me the node-gyp version being run is v2.0.1).

    It is not possible to upgrade node-gyp, so I wanted to file this problem to see if someone has a workaround or for the Azure Websites product team to check out the problem.



    Thursday, September 17, 2015 1:11 PM

Answers

  • Hello,
    The workaround/resolution is to install all the modules on a Windows dev box and include node_modules as part of the git deployment.
     
    Check this link:
    http://azure.microsoft.com/en-us/documentation/articles/nodejs-use-node-modules-azure-apps/.

    Regards DOD..
    Thursday, September 17, 2015 5:25 PM

All replies

  • Hello,
    The workaround/resolution is to install all the modules on a Windows dev box and include node_modules as part of the git deployment.
     
    Check this link:
    http://azure.microsoft.com/en-us/documentation/articles/nodejs-use-node-modules-azure-apps/.

    Regards DOD..
    Thursday, September 17, 2015 5:25 PM
  • Fine, it's a doable workaround.

    As a side note, even when doing that, you'll need to tell kudu to not do npm install. This is done easily by generating a customer nodejs deployment script with the azure-cli generator and removing the section of deploy.cmd that executes npm install. Put these scripts in the root of your project and push to azure.

    Thanks for the pointer.

    Friday, September 18, 2015 11:38 AM