nielsenramon/chalk

Error on npm run local

dnswd opened this issue · 3 comments

dnswd commented

I have no idea how to resolve this, here's how it looks like

Artemis@MSI MINGW64 /d/Blog/Artemis1872.github.io/Artemis1872 (master)
$ npm run local

> chalk@ local D:\Blog\Artemis1872.github.io\Artemis1872
> bundle exec jekyll serve --drafts

Configuration file: D:/Blog/Artemis1872.github.io/Artemis1872/_config.yml
   GitHub Metadata: site.name is set in _config.yml, but many plugins and themes expect site.title to be used instead. To avoid potential inconsistency, Jekyll GitHub Metadata will not set site.title to the repository's name.
            Source: D:/Blog/Artemis1872.github.io/Artemis1872
       Destination: D:/Blog/Artemis1872.github.io/Artemis1872/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
  Liquid Exception: Liquid syntax error (D:/Blog/Artemis1872.github.io/Artemis1872/_includes/image.html line 1): Unknown tag 'asset' included in D:/Blog/Artemis1872.github.io/Artemis1872/_posts/2017-12-21-chalk-sample-post-with-all-elements.md
jekyll 3.8.5 | Error:  Liquid syntax error (D:/Blog/Artemis1872.github.io/Artemis1872/_includes/image.html line 1): Unknown tag 'asset' included
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chalk@ local: `bundle exec jekyll serve --drafts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chalk@ local script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Artemis\AppData\Roaming\npm-cache\_logs\2019-09-11T07_10_36_948Z-debug.log
dnswd commented

I just figured out that the problem is on jekyll-assets. I'm still looking for answer, maybe this?

I was fighting with this issue for several hours, solution found in website branch.
Replace gem "sprockets" in Gemfile with gem "sprockets", "4.0.0.beta6".

dnswd commented

That solve the problem. Also there's missing Javascript libraries:

  • webfontloader.js
  • svgxuse.js
  • retina.js
  • zooming.min.js
  • jquery.js

I don't know anything so I just put them inside _assets\javascripts .It worked well.