设置节点v0.11的错误。x在Azure网站

时间:2022-12-05 07:49:51

We are trying to move a node.js app that requires node v0.11.x to Azure WebSites.

我们试着移动一个节点。需要节点v0.11的js应用程序。x Azure网站。

When trying to use azure-node-runtime-selector to install node v0.11.x, we encounted what seems a bug caused by nodist installing npm 2.0.0-alpha.

在尝试使用azennoderuntime -selector来安装节点v0.11时。x,我们计算了nodist安装npm 2.0.0-alpha导致的bug。

Below the output of call to nodist update:

以下是nodist更新的输出:

          1 file(s) copied.
  npm http GET https://registry.npmjs.org/npm
  npm http 304 https://registry.npmjs.org/npm
  npm http GET https://registry.npmjs.org/npm/2.0.0-alpha-5
  npm http 304 https://registry.npmjs.org/npm/2.0.0-alpha-5
  D:\home\node\nodist\bin\npm -> D:\home\node\nodist\bin\node_modules\npm\bin\npm-cli.js
  npm@2.0.0-alpha-5 D:\home\node\nodist\bin\node_modules\npm
  'ode' is not recognized as an internal or external command,
          1 file(s) moved.
  operable program or batch file.
  Install dependencies...

Any ideas on how to either solve this or, alternatively, how to force nodist to keep using npm v1.4.*?

关于如何解决这个问题或如何强制nodist继续使用npm v1.4的任何想法。*?

2 个解决方案

#1


1  

If you don't mind an alternative solution, you can use this guide under the section "Using a custom version with Azure Web Sites". The only important step is to bring your own node.exe with your app, and set "nodeProcessCommandLine: " in iisnode.yml to your node.exe's path.

如果您不介意另一种解决方案,您可以在“使用Azure Web站点的自定义版本”一节中使用此指南。唯一重要的步骤是带您自己的节点。exe与您的应用程序,并设置“nodeProcessCommandLine:”在iisnode中。yml节点。exe的路径。

Edit: See github.com/mtian/custom-version for an example.

编辑:参见github.com/mtian/custom版本。

#2


0  

Looks like there's a typo somewhere (it's failing on 'ode' which should probably be 'node'). You could try finding where that typo is coming from and fix it.

看起来在某个地方出现了一个类型错误(它在“ode”上失败了,它应该是“node”)。你可以试着找出错误的来源并加以改正。

#1


1  

If you don't mind an alternative solution, you can use this guide under the section "Using a custom version with Azure Web Sites". The only important step is to bring your own node.exe with your app, and set "nodeProcessCommandLine: " in iisnode.yml to your node.exe's path.

如果您不介意另一种解决方案,您可以在“使用Azure Web站点的自定义版本”一节中使用此指南。唯一重要的步骤是带您自己的节点。exe与您的应用程序,并设置“nodeProcessCommandLine:”在iisnode中。yml节点。exe的路径。

Edit: See github.com/mtian/custom-version for an example.

编辑:参见github.com/mtian/custom版本。

#2


0  

Looks like there's a typo somewhere (it's failing on 'ode' which should probably be 'node'). You could try finding where that typo is coming from and fix it.

看起来在某个地方出现了一个类型错误(它在“ode”上失败了,它应该是“node”)。你可以试着找出错误的来源并加以改正。