Deploying a NodeJS App to Azure Websites fails on installing NPM packages from pagages.json from deploy.cmd?

北战南征 提交于 2019-12-07 20:16:29
Konstantin

some time has passed but some might still face this issue. Please refer to my answer in the following thread node.js app with node-gyp fails to deploy on azure website where you can find a solution on how to get packages using node-gyp running without having to include the whole node_modules folder in your repository.

Frej

I'v tracked down the error to 2 NPM packages, sails and sails-mongo. They are dependent on packages using node-gyp and/or python wich at the time is not supported in Azure Websites.

To fix this, I added the whole node_modules map to GIT tracking and pushed it to Azure Websites and it worked!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!