【问题标题】:Changing a mobile service's running version of NodeJS更改移动服务的 NodeJS 运行版本
【发布时间】:2014-02-19 21:32:59
【问题描述】:

我需要在我的移动服务中更新 NodeJS 引擎的版本以支持默认库中的一些新功能。我已尝试更新 packages.json(服务的 GIT 结帐的根目录)中的要求而没有任何更改。

这就是现在的样子(我已经删除了一些额外的细节):

{
    "main": "server.js",
    "engines": {
        "node": ">= 0.9.5"
    },
    "dependencies": {},
    "devDependencies": {},
    "scripts": {}
}

我需要 0.9.3 或更高版本。该过程是否考虑到此文件?如何在我的移动服务中更新 Node 的版本?

【问题讨论】:

    标签: node.js azure version azure-mobile-services


    【解决方案1】:

    AFAIK 当前移动服务在 0.8.26 上运行,您无法更改它。 Azure 网站中有特殊的 WEBSITE_NODE_DEFAULT_VERSION 应用设置可以切换,但无法保存在移动服务应用设置中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-04-21
      • 2018-08-04
      • 2016-09-04
      • 2021-04-07
      • 1970-01-01
      • 2014-12-23
      • 1970-01-01
      相关资源
      最近更新 更多