作者热门文章
- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我无法让我的网站在 GitLab Pages 或 Netlify 上运行。尝试使用任一服务上传我的 Jekyll 网站并托管它会返回有关无法在任一平台上安装 sass-listen 的错误。下面显示的是我用来制作 Jekyll 网站并从中部署的应用程序版本。
> ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
> bundle -v
Bundler Version 1.16.2
> lsb_release -a
LSB Version: n/a
Distributor ID: ManjaroLinux
Description: Manjaro Linux
Release: 17.1.10
Codename: Hakoila
> bundle update
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using public_suffix 3.0.2
Using addressable 2.5.2
Using bundler 1.16.2
Using colorator 1.1.0
Using concurrent-ruby 1.0.5
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using ffi 1.9.25
Using forwardable-extended 2.6.0
Using i18n 0.9.5
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.6
Using jekyll-sass-converter 1.5.2
Using rb-fsevent 0.10.3
Using ruby_dep 1.5.0
Using listen 3.1.5
Using jekyll-watch 2.0.0
Using kramdown 1.17.0
Using liquid 4.0.0
Using mercenary 0.3.6
Using pathutil 0.16.1
Using rouge 3.1.1
Using safe_yaml 1.0.4
Using jekyll 3.8.3
Using jekyll-menus 0.6.0
Bundle updated!
> bundle install
Using public_suffix 3.0.2
Using addressable 2.5.2
Using bundler 1.16.2
Using colorator 1.1.0
Using concurrent-ruby 1.0.5
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using ffi 1.9.25
Using forwardable-extended 2.6.0
Using i18n 0.9.5
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.6
Using jekyll-sass-converter 1.5.2
Using rb-fsevent 0.10.3
Using ruby_dep 1.5.0
Using listen 3.1.5
Using jekyll-watch 2.0.0
Using kramdown 1.17.0
Using liquid 4.0.0
Using mercenary 0.3.6
Using pathutil 0.16.1
Using rouge 3.1.1
Using safe_yaml 1.0.4
Using jekyll 3.8.3
Using jekyll-menus 0.6.0
Bundle complete! 3 Gemfile dependencies, 27 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
> cat ./Gemfile
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.8.3"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-menus"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?
> cat ./Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
concurrent-ruby (1.0.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.9.25)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.3)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-menus (0.6.0)
jekyll (~> 3.1)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.0.0)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
pathutil (0.16.1)
forwardable-extended (~> 2.6)
public_suffix (3.0.2)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (3.1.1)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.5.6)
sass-listen (>= 4.0.0)
sass-listen (4.0.0)
rb-inotify (>= 0.9.7, >= 0.9)
PLATFORMS
ruby
DEPENDENCIES
jekyll (~> 3.8.3)
jekyll-menus
tzinfo-data
BUNDLED WITH
1.16.2
当我尝试部署到 GitLab 或 Netlify 时,这是我得到的确切错误。我试过切换 Ruby 版本,在没有 Ruby GemLock 文件的情况下推送,制作一个全新的 Jekyll 站点并在其上运行“bundle install”,删除和添加插件,并运行“bundle install --full-index”以下所有返回两个部署平台上的错误相同。
在 Netlify 上:
6:13:50 PM: Build ready to start
6:13:51 PM: Fetching cached dependencies
6:13:52 PM: Failed to fetch cache, continuing with build
6:13:52 PM: Starting to prepare the repo for build
6:13:52 PM: No cached dependencies found. Cloning fresh repo
6:13:52 PM: git clone git@gitlab.com:ReasonablySelenium/netlify-debugging-project
6:13:54 PM: Preparing Git Reference refs/heads/master
6:13:55 PM: Starting build script
6:13:55 PM: Installing dependencies
6:13:56 PM: Downloading and installing node v8.11.3...
6:13:56 PM: Downloading https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xz...
6:13:56 PM:
#
6:13:56 PM: 1.8%
6:13:57 PM:
##################
6:13:57 PM: 25.4%
6:13:57 PM:
############################################ 61.6%
6:13:57 PM:
################################
6:13:57 PM: ######################################## 100.0%
6:13:57 PM: Computing checksum with sha256sum
6:13:57 PM: Checksums matched!
6:13:59 PM: Now using node v8.11.3 (npm v5.6.0)
6:14:00 PM: Attempting ruby version 2.3.6, read from environment
6:14:01 PM: Using ruby version 2.3.6
6:14:02 PM: Using PHP version 5.6
6:14:02 PM: Started restoring cached ruby gems
6:14:02 PM: Finished restoring cached ruby gems
6:14:02 PM: Installing gem bundle
6:14:03 PM: Fetching gem metadata from https://rubygems.org/
6:14:03 PM: .
6:14:03 PM: .
6:14:03 PM: .
6:14:03 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:04 PM: .
6:14:05 PM: Fetching public_suffix 3.0.2
6:14:05 PM: Installing public_suffix 3.0.2
6:14:05 PM: Fetching addressable 2.5.2
6:14:05 PM: Installing addressable 2.5.2
6:14:05 PM: Using bundler 1.16.2
6:14:05 PM: Fetching colorator 1.1.0
6:14:05 PM: Installing colorator 1.1.0
6:14:05 PM: Fetching concurrent-ruby 1.0.5
6:14:05 PM: Installing concurrent-ruby 1.0.5
6:14:06 PM: Fetching eventmachine 1.2.7
6:14:06 PM: Installing eventmachine 1.2.7 with native extensions
6:14:23 PM: Fetching http_parser.rb 0.6.0
6:14:23 PM: Installing http_parser.rb 0.6.0 with native extensions
6:14:24 PM: Fetching em-websocket 0.5.1
6:14:25 PM: Installing em-websocket 0.5.1
6:14:25 PM: Fetching ffi 1.9.25
6:14:25 PM: Installing ffi 1.9.25 with native extensions
6:14:34 PM: Fetching forwardable-extended 2.6.0
6:14:35 PM: Installing forwardable-extended 2.6.0
6:14:35 PM: Fetching i18n 0.9.5
6:14:35 PM: Installing i18n 0.9.5
6:14:35 PM: Fetching rb-inotify 0.9.10
6:14:35 PM: Installing rb-inotify 0.9.10
6:14:35 PM: Fetching sass-listen 4.0.0
6:14:35 PM: Downloading sass-listen-4.0.0 revealed dependencies not in the API or the
6:14:35 PM: lockfile (rb-fsevent (>= 0.9.4, ~> 0.9), rb-inotify (>= 0.9.7, ~> 0.9)).
6:14:35 PM: Either installing with `--full-index` or running `bundle update sass-listen`
6:14:35 PM: should fix the problem.
6:14:35 PM: In Gemfile:
6:14:35 PM: minima was resolved to 2.5.0, which depends on
6:14:35 PM: jekyll-feed was resolved to 0.10.0, which depends on
6:14:35 PM: jekyll was resolved to 3.8.3, which depends on
6:14:35 PM: jekyll-sass-converter was resolved to 1.5.2, which depends on
6:14:35 PM: sass was resolved to 3.5.6, which depends on
6:14:35 PM: sass-listen
6:14:35 PM: Error during gem install
6:14:35 PM: Error running command: Build script returned non-zero exit code: 1
6:14:35 PM: Failing build: Failed to build site
6:14:35 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
6:14:35 PM: Finished processing build request in 44.176883866s
在 GitLab 上:
Running with gitlab-runner 11.0.0-rc1 (6dcccded)
on docker-auto-scale ed2dce3a
Using Docker executor with image ruby:2.3 ...
Pulling docker image ruby:2.3 ...
Using docker image sha256:da0014e956b4cd42c7a08393a84f937a8d9c8a90de2e765ad04e73ab37abb945 for ruby:2.3 ...
Running on runner-ed2dce3a-project-7166488-concurrent-0 via runner-ed2dce3a-srm-1529693929-b4ef16ac...
Cloning repository...
Cloning into '/builds/ReasonablySelenium/rozlan-society.gitlab.io'...
Checking out 53ea4d7e as master...
Skipping Git submodules setup
$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching public_suffix 3.0.2
Installing public_suffix 3.0.2
Fetching addressable 2.5.2
Installing addressable 2.5.2
Using bundler 1.16.2
Fetching colorator 1.1.0
Installing colorator 1.1.0
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching eventmachine 1.2.7
Installing eventmachine 1.2.7 with native extensions
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching em-websocket 0.5.1
Installing em-websocket 0.5.1
Fetching ffi 1.9.25
Installing ffi 1.9.25 with native extensions
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching sass-listen 4.0.0
Downloading sass-listen-4.0.0 revealed dependencies not in the API or the
lockfile (rb-fsevent (>= 0.9.4, ~> 0.9), rb-inotify (>= 0.9.7, ~> 0.9)).
Either installing with `--full-index` or running `bundle update sass-listen`
should fix the problem.
In Gemfile:
jekyll-menus was resolved to 0.6.0, which depends on
jekyll was resolved to 3.8.3, which depends on
jekyll-sass-converter was resolved to 1.5.2, which depends on
sass was resolved to 3.5.6, which depends on
sass-listen
ERROR: Job failed: exit code 1
我不确定此时我应该做什么。有人可以请我出去吗?
编辑:我今天尝试使用更新的库,但没有用。从那以后,我已经离开 Jekyll 一段时间了,所以我不想费心去解决这个问题,如果必须的话,我会继续做其他事情。感谢大家的帮助。
最佳答案
这为我解决了问题:
rm Gemfile.lock
bundle install --path=vendor
关于ruby - Jekyll 无法在 Manjaro Linux 上部署 - Sass-Listen-4.0.0 无法在部署时安装(GitLab、Netlify),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50994608/
我是一名优秀的程序员,十分优秀!