在 Azure 网站上升级节点? [英] Upgrading Node on an Azure website?

查看:22
本文介绍了在 Azure 网站上升级节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Azure 网站上使用 NPM 运行一些预部署任务(单元测试等),但是 VM 上的节点版本是 v0.10.32,节点的当前版本是 v4.2.4.

我没有通过 SCM 网站对命令行的管理访问权限,没有 RDP 等

有什么办法可以升级吗?

解决方案

您可以使用 package.json 文件指定运行应用的节点版本.添加:

"engines":{"node":version}

例如:

"engines":{"node": "0.12.x"},

更多信息:https://azure.microsoft.com/en-us/documentation/articles/nodejs-specify-node-version-azure-apps/

I'm trying to run some pre deployment tasks (unit tests etc) with NPM on an Azure website, however the version of node on the VM is v0.10.32, the current version of node is v4.2.4.

I have non administrative access to the command line via the SCM website, no RDP etc.

Is there any way to upgrade?

解决方案

You can specify the version of node that the app is running on using the package.json file. Add:

"engines":{"node":version}

e.g.:

"engines":{"node": "0.12.x"}, 

More info: https://azure.microsoft.com/en-us/documentation/articles/nodejs-specify-node-version-azure-apps/

这篇关于在 Azure 网站上升级节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆