流星(1.4.1)结帐无法在代码运行服务器上运行
问题描述:
我使用代码运行来运行一些测试并部署到星系。流星(1.4.1)结帐无法在代码运行服务器上运行
现在安装程序通过从git checkout运行流星来工作。以下是安装脚本:
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)
我需要做什么才能使流星安装在代码上运行?
答
有一个脚本可在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支持,我们将其包含在你的设置步骤我们来看看。