CloudCannon / vonge-jekyll-bookshop-template

📝 Personal blog template for Jekyll

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASCII error while running `install-jekyll`

severus-tux opened this issue · comments

Hi
I'm getting the following error when I run npm run install-jekyll

vishwa@rick2:~/vonge-jekyll-bookshop-template$ npm run install-jekyll

> vonge-jekyll-bookshop-template@ install-jekyll /home/vishwa/vonge-jekyll-bookshop-template
> BUNDLE_GEMFILE=site/Gemfile bundle install

Fetching gem metadata from https://rubygems.org/.........
Fetching https://github.com/CloudCannon/jekyll-watch

[!] There was an error while loading `jekyll-watch.gemspec`: invalid byte sequence in US-ASCII. Bundler cannot continue.

 #  from /home/vishwa/gems/bundler/gems/jekyll-watch-328940540e27/jekyll-watch.gemspec:14
 #  -------------------------------------------
 #  
 >    spec.files         = `git ls-files -z`.split("\x0").grep(%r!(bin|lib)/!)
 #    spec.executables   = spec.files.grep(%r!^bin/!) { |f| File.basename(f) }
 #  -------------------------------------------
npm ERR! code ELIFECYCLE
npm ERR! errno 14
npm ERR! vonge-jekyll-bookshop-template@ install-jekyll: `BUNDLE_GEMFILE=site/Gemfile bundle install`
npm ERR! Exit status 14
npm ERR! 
npm ERR! Failed at the vonge-jekyll-bookshop-template@ install-jekyll script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vishwa/.npm/_logs/2022-02-21T11_57_53_315Z-debug.log

Hi @severus-tux 👋

Hmm, I haven't seen this one before. I've made a change to our jekyll-watch plugin that hopefully fixes this, if you delete your Gemfile.lock and reinstall I think you should be alright. Otherwise, upgrading your Ruby version might also help since this seems to be a transient bug.

Hope those help! Feel free to re-open this if the problem persists.

I tried removing the Gemfile.lock and reinstalling. I updated my npm and ruby as well. The error still persists.

npm: 8.3.1
ruby: ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-linux]

I get the following error when I run npm run install-jekyll

vishwa@rick2:~/vonge-jekyll-bookshop-template$ npm run install-jekyll

> install-jekyll
> BUNDLE_GEMFILE=site/Gemfile bundle install

Fetching https://github.com/CloudCannon/jekyll-watch

[!] There was an error while loading `jekyll-watch.gemspec`: invalid byte sequence in US-ASCII. Bundler cannot continue.

 #  from /home/vishwa/.gem/bundler/gems/jekyll-watch-d220b890e179/jekyll-watch.gemspec:15
 #  -------------------------------------------
 #  
 >    spec.files         = `git ls-files -z`.split("\x0").grep(%r!(bin|lib)/!)
 #    spec.executables   = spec.files.grep(%r!^bin/!) { |f| File.basename(f) }
 #  -------------------------------------------
vishwa@rick2:~/vonge-jekyll-bookshop-template$