我可以在IBM Bluemix DevOps Services中使用不同版本的Node,构建步骤“ npm”构建器类型吗? [英] Can I use a different version of Node in the: IBM Bluemix DevOps Services, build step 'npm' builder type?

查看:81
本文介绍了我可以在IBM Bluemix DevOps Services中使用不同版本的Node,构建步骤“ npm”构建器类型吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个ember应用程序,然后将其打包到WAR文件中以部署到自由运行时。

I am building an ember application and then packaging it into a WAR file for deployment to a liberty runtime.

ember构建过程警告我ember-cli将停止使用节点v0.10.29,建议使用节点0.12。

The ember build process warns me that ember-cli will cease to work with node v0.10.29 and recommends using node 0.12.

我可以在以下环境中使用不同版本的Node:DevOps Services,构建步骤'npm


未来版本的Ember CLI将不支持
v0.10.29。请更新到
Node 0.12或io.js。版本:0.2.7
1.13.8

Future versions of Ember CLI will not support v0.10.29. Please update to Node 0.12 or io.js. version: 0.2.7 1.13.8

找不到监视者,将
退回NodeWatcher进行文件系统事件。
访问
http://www.ember-cli.com/#watchman 获得
更多信息。
BuildingBuilding.Building..Building ... BuildingBuilding.Building..Building ... BuildingBuilding.Building..Building ... BuildingBuilding.Building..Building ... BuildingBuilding。(node)
警告:递归process.nextTick
检测到。这将在下一个
版本的节点中中断。请使用
setImmediate进行递归延迟。
(节点)警告:检测到递归
process.nextTick。这将在下一版本的节点中中断

请使用setImmediate递归
递延。 ...(重复的节点警告)
...(节点)警告:检测到递归
process.nextTick。这将在下一版本的节点中中断

请使用setImmediate递归
递延。

Could not find watchman, falling back to NodeWatcher for file system events. Visit http://www.ember-cli.com/#watchman for more info. BuildingBuilding.Building..Building...BuildingBuilding.Building..Building...BuildingBuilding.Building..Building...BuildingBuilding.Building..Building...BuildingBuilding.(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral. (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral. ... (repeated node warnings) ... (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.

RangeError:超出最大调用堆栈大小
生成步骤'Execute shell'
将构建标记为失败完成:
失败

RangeError: Maximum call stack size exceeded Build step 'Execute shell' marked build as failure Finished: FAILURE


推荐答案

v0.10.29是构建映像上存在的节点的唯一版本。为了使用其他版本,用户必须下载它。这是一个有关如何执行此操作的示例脚本

v0.10.29 is the only version of node that exists on the build image. In order to use a different version the user must download it. Here is an example script of how to do that

#!/bin/bash
node_version=v0.12.7
install_name=node-v0.12.7-linux-x64
if [ ! -e $install_name.tar.gz ]; then
wget "http://nodejs.org/dist/$node_version/$install_name.tar.gz"
echo 'Untarring'
tar xf $install_name.tar.gz
fi
NODE_12_INSTALL_DIR=`pwd`/$install_name/bin
PATH=$NODE_12_INSTALL_DIR:$PATH
node -v

这篇关于我可以在IBM Bluemix DevOps Services中使用不同版本的Node,构建步骤“ npm”构建器类型吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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