버그 인 경우 확실하지 않지만 웹에서 아무것도 찾을 수 없습니다. Grunt, Jekyll 및 Homebrew의 조합을 사용하여 모든 것이 잘 작동하여 내 웹 사이트를 만들었습니다. 하지만 High Sierra로 업데이트하면 Jekyll 빌드가 실패합니다. 나는 보통 지킬 구축 실행MacOS 상위 시에라 업데이트 후 Jekyll 빌드가 작동하지 않음
방법은 grunt-shell
작업과 같이 경유 : 다음과 같은 오류를 제공
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: {
jekyllBuild: {
command: 'jekyll build'
}
},
connect: {
server: {
options: {
hostname: 'localhost',
port: 4000,
base: '_build'
}
}
},
...
watch: {
jekyll: {
options: {
livereload: true
},
files: [
'**/*.scss',
'**/*.html',
'**/*.js',
// The negations must go after
'!*node_modules/**',
'!*_build/**',
'*.md',
'*.yml',
'img/**',
],
tasks: ['shell:jekyllBuild','postcss']
}
}
});
...
grunt.registerTask('serve', ['shell','connect','watch']);
:
Running "shell:jekyllBuild" (shell) task
Configuration file: [URL]/_config.yml
Source: [URL]
Destination: _build
Incremental build: disabled. Enable with --incremental
Generating...
jekyll 3.6.0 | Error: negative argument
Warning: Command failed: jekyll build
Use --force to continue.
Aborted due to warnings.
모든 다른 내가 지킬를 제외하고 작품을 실행합니다.
또한 단지 쉘 작업없이 jekyll build
를 실행 시도하지만 여전히 오류가있어 :
jekyll 3.6.0 | Error: negative argument
Warning: Command failed: jekyll build
Use --force to continue.
Aborted due to warnings.
내가 지방 일을 계속 브루를 사용하고 모든 것이 올바른 위치에있을 것 같다
~$ which jekyll
/usr/local/bin/jekyll
~$ which ruby
/usr/local/bin/ruby
~$ which grunt
[URL]/.npm-packages/bin/grunt
~$ which gem
/usr/local/bin/gem
~$ which node
/usr/local/bin/node
을
나는 나의 설치가 최고가 아닐지도 모른다. 그러나 그것은 약간의 지침을 원하고있다. 나는 처음에는이 설치 프로그램을 만드는 사람이 아니었지만 나는 프로그래머가 아니 었습니다. 오히려 내 해를 끼칠 수있는 웹 디자이너가 있습니다. :)
과실 또는 지킬 때 오류가 발생합니까? '지킬 빌드 '를 수동으로 실행하려고 했습니까? 그렇다면, 그 일을 했습니까? – Casper
나는 짤깍 소리가 나기 때문에 설치를 더 간단하게 유지할 수있다. – JoostS
@Casper 예, 내가 한 것과 같은 오류가 발생합니다. 또한 Jekyll repo에 대한 도움을 받았고 플러그인이 내 플러그인 중 하나 일 수 있다고 생각하는 것 같습니다. https://github.com/jekyll/jekyll/issues/6393 –