我正在使用代码运行来运行一些测试并部署到galaxy。
现在,通过从git checkout运行meteor,设置工作正常。以下是设置脚本:
git clone https://github.com/meteor/meteor.git ~/meteor
cd ~/meteor && git reset --hard 365c765 && cd -
export PATH=~/meteor/:$PATH
meteor npm install
现在我无法在不抛出错误的情况下通过meteor npm install
命令。错误如下:
It's the first time you've run Meteor from a git checkout.
I will download a kit containing all of Meteor's dependencies.
######################################################################## 100.0%
Installed dependency kit v4.2.9 in dev_bundle.
/home/rof/meteor/tools/cli/dev-bundle.js:55
return getDevBundleForRelease(release).then(function (devBundleDir) {
^
TypeError: Cannot read property 'then' of null
at getDevBundleDir (/home/rof/meteor/tools/cli/dev-bundle.js:55:41)
at Object.<anonymous> (/home/rof/meteor/tools/cli/dev-bundle.js:205:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.getDevBundle (/home/rof/meteor/tools/cli/dev-bundle-bin-helpers.js:6:10)
at getChildProcess (/home/rof/meteor/tools/cli/dev-bundle-bin-commands.js:28:13)
我需要做些什么才能让meteor安装在代码发货上运行?
答案 0 :(得分:0)
https://github.com/codeship/scripts/blob/master/packages/meteor.sh有一个脚本可以处理安装。
通过添加以下命令
将其包含在设置步骤中curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/meteor.sh | bash -s
如果这对您的项目不起作用,请在存储库中打开新问题或通过https://helpdesk.codeship.com与Codeship支持联系,我们会看一下。