如何解决我使用jasmine init

时间:2015-11-02 11:12:34

标签: jasmine jasmine-headless-webkit

我遇到使用jasmine init的问题。

当我按下Enter键时,我得到以下输出:

    $ jasmine init
/usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:in `require': cannot load such file -- jasmine-core (LoadError)
    from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:in `require'
    from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/lib/jasmine/application.rb:3:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/lib/jasmine.rb:25:in `block in <top (required)>'
    from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/lib/jasmine.rb:24:in `each'
    from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/lib/jasmine.rb:24:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/bin/jasmine:4:in `<top (required)>'
    from /usr/local/bin/jasmine:23:in `load'
    from /usr/local/bin/jasmine:23:in `<main>'

我正在设置使用jasmine-headless-webkit并且不是专业用户正在遵循模糊的指示并且不确定哪里出错了。

最初我有jasmine init工作,但后来我开始接受上述工作。

任何建议表示赞赏。

1 个答案:

答案 0 :(得分:0)

我设法回滚到以前的状态,在尝试安装与jasmine有关的任何事情之前,然后重新开始。

现在似乎正在运作。