Hi there,
unfortunately I failed deploying my app to Azure. It makes use of the great HummusJS library. Everything works fine on my development machine - a MacBook Pro.
When I deploy to an azure web app I get the following error:
Failed exitCode=1, command="D:\Program Files (x86)nodejs\6.11.2node.exe" "D:\Program Files (x86)\npm\3.10.10node_modules\npm\bin\npm-cli.js" install --production
An error has occurred during web site deployment.
node-pre-gyp ERR! Tried to download: https://hummus.s3-us-west-2.amazonaws.com/hummus/v1.0.81/node-v48-win32-ia32.tar.gz \r\nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp) \r\ngyp ERR! build error \r\ngyp ERR! stack Error: msbuild failed with exit code: 1\r\ngyp ERR! stack at ChildProcess.onExit (D:\Program Files (x86)\npm\3.10.10node_modules\npmnode_modulesnode-gyp\lib\build.js:276:23)\r\ngyp ERR! stack at emitTwo (events.js:106:13)\r\ngyp ERR! stack at ChildProcess.emit (events.js:191:7)\r\ngyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\r\ngyp ERR! System Windows_NT 6.2.9200\r\ngyp ERR! command "D:\Program Files (x86)\nodejs\6.11.2\node.exe" "D:\Program Files (x86)\npm\3.10.10\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=D:\home\site\wwwroot\node_modules\hummus\binding\hummus.node" "--module_name=hummus" "--module_path=D:\home\site\wwwroot\node_modules\hummus\binding"\r\ngyp ERR! cwd D:\home\site\wwwrootnode_modules\hummus\r\ngyp ERR! node -v v6.11.2\r\ngyp ERR! node-gyp -v v3.4.0\r\ngyp ERR! not ok \r\nnode-pre-gyp ERR! build error \r\nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-to-build --module=D:\home\site\wwwrootnode_modules\hummus\binding\hummus.node --module_name=hummus --module_path=D:\home\site\wwwrootnode_modules\hummus\binding' (1)\r\nnode-pre-gyp ERR! stack at ChildProcess.node-pre-gyp install --fallback-to-build\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the hummus package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR! node-pre-gyp install --fallback-to-build\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR! npm bugs hummus\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR! npm owner ls hummus\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR! D:\home\site\wwwroot\npm-debug.log\r\nD:\Program Files (x86)\SiteExtensions\Kudu\65.60901.2996\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
Any ideas on how to resolve this?
Thank you very much!
try this
[Run as administrator]
npm i -g --production windows-build-tools
npm install --global node-gyp
npm install --global node-pre-gyp
npm i hummus --save
@galkahana Am also facing this same issue. How u fixed that Issue
Hi!
I solved it by using a Linux machine. I suppose the problem occurs because some of the dependencies are not compatible on Windows environments.
My server is currently running on a Linode Ubuntu machine. But it should also work on an Azure Linux server.
Hope that helps.
I am also getting the same error in CentOS. How can I fix?. In the local machine, I am using ubuntu 14.04 its working fine.
Azure App Service does not give the user administrator access, so the windows-build-tools solution will not work.
Most helpful comment
try this