Angular 7应用程序配置和Node问题 [英] Angular 7 application configuration and Node issue
问题描述
我最近开发了一个基于Angular 7的应用程序,将它部署到IIS,一切都运行得很好。
我的开发机器上的Node.js版本是v10.15.3。
昨天,我决定将此应用程序部署到Azure应用服务。配置此应用程序时,我尝试使用相同的Node.js版本,但后来我发现(使用Kudu服务 - >运行时版本)此版本尚未在Azure上提供。因此,我花了
来获取Azure上的最新版本 - 这是v8.9.4。
我在我的应用程序中添加了WEBSITE_NODE_DEFAULT_VERSION设置,在控制台上添加了双重检查节点版本正确返回了最新的节点版本。
然后我继续使用npm install(在控制台上)安装节点模块。花了一些时间并最终出现错误:
现在,我不知道如何解决这个问题 - 当我没有选择安装最新的Node版本时。怎么办?
请帮忙。在此期待感谢。
Asim
Asim
如果我们需要任何其他细节,请告诉我。
谢谢,
Asim
Hi,
I recently developed a Angular 7 based application, deployed it to IIS and everything worked just great.
The Node.js version on my Development machine is v10.15.3.
Yesterday, I decided to deploy this app to Azure App Service. While configuring this app I tried using the same Node.js version but then I found (using Kudu services -> Runtime Versions) that this version is not yet available on Azure. Therefore, I went for the latest available version on Azure - which is v8.9.4.
I added WEBSITE_NODE_DEFAULT_VERSION setting to my application, double checked node version on console and it correctly returned the latest node version.
I then moved on to install node modules using npm install (on the console). It took some time and ended up with an error:
Now, I am not sure how to work around this - when I don't have option of installing latest Node version. What to do?
Please help. Thanks in anticipation.
Asim
Asim
Please let me know if we need any other details.
Thanks,
Asim
这篇关于Angular 7应用程序配置和Node问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!