简体   繁体   English

在 Azure 移动服务中更改 Node JS 版本

[英]Change Node JS version in Azure Mobile Services

My Azure Mobile Service is running on Node JS Version v0.0.28我的 Azure 移动服务在 Node JS 版本 v0.0.28 上运行

{"nodeversion":"v0.8.28"}

I have altered the package.json to utilize Version 4.1.0 which is installed on the Azure Server, but even after changing this and rebooting the server I still see v0.8.28.我已更改 package.json 以使用安装在 Azure 服务器上的版本 4.1.0,但即使在更改此设置并重新启动服务器后,我仍然看到 v0.8.28。

I even modified the enviroment variables on the server, but after a reboot they just revert back anyways.我什至修改了服务器上的环境变量,但在重新启动后,它们无论如何都会恢复。

How can I change the nodejs version on Azure Mobile Services?如何更改 Azure 移动服务上的 nodejs 版本?

As of July 07, 2015, you cannot upgrade NodeJS on Azure Mobile Services.自 2015 年 7 月 7 日起,您无法在 Azure 移动服务上升级 NodeJS。 See this thread on the Azure Mobile Service forums. 请参阅 Azure 移动服务论坛上的此主题。

MSDN 回答说我们无法在 Azure 移动服务上升级 NodeJS。

What you can do is check your node version:您可以做的是检查您的节点版本:

  1. Go to https://MY_APP.scm.azure-mobile.net/DebugConsole转到https://MY_APP.scm.azure-mobile.net/DebugConsole
  2. Run node -v .运行node -v
  3. You can see exactly what version you're running.您可以准确地看到您正在运行的版本。

我的 Azure 移动服务正在运行节点 v0.8.28

The v2 of Azure Mobile Services for node.js (Azure Mobile Apps) is open source and supports any version of node.js.适用于 node.js 的 Azure 移动服务 v2(Azure 移动应用程序)是开源的,支持任何版本的 node.js。 Built on Express and completely customizable.建立在 Express 之上,完全可定制。 Beta release scheduled for November 2015, but it's available now for pre-release testing and development. Beta 版计划于 2015 年 11 月发布,但现在可用于预发布测试和开发。 Github project available here . Github 项目可在此处获得

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM