nielsenramon / chalk

Chalk is a high quality, completely customizable, performant and 100% free Jekyll blog theme.
http://chalk.nielsenramon.com
MIT License
1.23k stars 443 forks source link

[error] on sudo npm run local #213

Open NETLIFYHOSTINGAHMD opened 3 years ago

NETLIFYHOSTINGAHMD commented 3 years ago

`> chalk@ local /home/ahmed/chalk

bundle exec jekyll serve --drafts

Configuration file: /home/ahmed/chalk/_config.yml Source: /home/ahmed/chalk Destination: /home/ahmed/chalk/_site Incremental build: disabled. Enable with --incremental Generating... /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/tags/include.rb:194: warning: Using the last argument as keyword parameters is deprecated /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/tags/include.rb:194: warning: Using the last argument as keyword parameters is deprecated Liquid Exception: "\xE2" on US-ASCII in /_layouts/post.html jekyll 3.8.6 | Error: "\xE2" on US-ASCII Traceback (most recent call last): 122: from /home/ahmed/.gem/ruby/2.7.0/bin/bundle:23:in <main>' 121: from /home/ahmed/.gem/ruby/2.7.0/bin/bundle:23:inload' 120: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/exe/bundle:37:in <top (required)>' 119: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/friendly_errors.rb:130:inwith_friendly_errors' 118: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/exe/bundle:49:in block in <top (required)>' 117: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/cli.rb:24:instart' 116: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start' 115: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/cli.rb:30:indispatch' 114: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch' 113: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:ininvoke_command' 112: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' 111: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/cli.rb:494:inexec' 110: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/cli/exec.rb:28:in run' 109: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/cli/exec.rb:63:inkernel_load' 108: from /root/.gem/ruby/2.7.0/gems/bundler-2.2.5/lib/bundler/cli/exec.rb:63:in load' 107: from /usr/bin/jekyll:23:in<top (required)>' 106: from /usr/bin/jekyll:23:in load' 105: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/exe/jekyll:15:in<top (required)>' 104: from /usr/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program' 103: from /usr/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:ingo' 102: from /usr/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in execute' 101: from /usr/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:ineach' 100: from /usr/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in block in execute' 99: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:75:inblock (2 levels) in init_with_program' 98: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in start' 97: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:ineach' 96: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in block in start' 95: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:36:inprocess' 94: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:65:in build' 93: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/command.rb:28:inprocess_site' 92: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:71:in process' 91: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:191:inrender' 90: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:462:in render_docs' 89: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:462:ineach_value' 88: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:463:in block in render_docs' 87: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:463:ineach' 86: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:464:in block (2 levels) in render_docs' 85: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:479:inrender_regenerated' 84: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/renderer.rb:62:in run' 83: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/renderer.rb:88:inrender_document' 82: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/renderer.rb:158:in place_in_layouts' 81: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/renderer.rb:195:inrender_layout' 80: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/renderer.rb:126:in render_liquid' 79: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:28:inrender!' 78: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:49:in measure_time' 77: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:29:inblock in render!' 76: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:42:in measure_bytes' 75: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:30:inblock (2 levels) in render!' 74: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:220:in render!' 73: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:207:inrender' 72: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:242:in with_profiling' 71: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:208:inblock in render' 70: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:91:in render' 69: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:103:inrender_node_to_output' 68: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/tags/include.rb:137:in render' 67: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/context.rb:123:instack' 66: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/tags/include.rb:140:in block in render' 65: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:28:inrender!' 64: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:49:in measure_time' 63: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:29:inblock in render!' 62: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:42:in measure_bytes' 61: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/liquid_renderer/file.rb:30:inblock (2 levels) in render!' 60: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:220:in render!' 59: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:207:inrender' 58: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:242:in with_profiling' 57: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:208:inblock in render' 56: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:82:in render' 55: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:103:inrender_node_to_output' 54: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/if.rb:43:in render' 53: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/context.rb:123:instack' 52: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/if.rb:44:in block in render' 51: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/if.rb:44:ineach' 50: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/if.rb:46:in block (2 levels) in render' 49: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:82:inrender' 48: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:103:in render_node_to_output' 47: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/if.rb:43:inrender' 46: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/context.rb:123:in stack' 45: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/if.rb:44:inblock in render' 44: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/if.rb:44:in each' 43: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/if.rb:46:inblock (2 levels) in render' 42: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:91:in render' 41: from /usr/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:103:inrender_node_to_output' 40: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/tag.rb:70:in render' 39: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/tag.rb:58:inrender_raw' 38: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/tag.rb:164:in internal' 37: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/env.rb:86:infind_asset!' 36: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/logger.rb:24:in with_timed_logging' 35: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/env.rb:87:inblock in find_asset!' 34: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/patches/find_asset.rb:9:in find_asset!' 33: from /usr/lib/ruby/gems/2.7.0/gems/jekyll-assets-3.0.12/lib/jekyll/assets/patches/cached.rb:47:infind_asset!' 32: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in load' 31: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:inblock in initialize' 30: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in load' 29: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:infetch_asset_from_dependency_cache' 28: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in block in load' 27: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:inload_from_unloaded' 26: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in call_processors' 25: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:inreverse_each' 24: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in block in call_processors' 23: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:incall_processor' 22: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:24:in call' 21: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/utils.rb:200:indfs' 20: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:23:in block in call' 19: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:inload' 18: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in block in initialize' 17: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:inload' 16: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in fetch_asset_from_dependency_cache' 15: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:inblock in load' 14: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in load_from_unloaded' 13: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:incall_processors' 12: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in reverse_each' 11: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:inblock in call_processors' 10: from /usr/lib/ruby/gems/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in call_processor' 9: from /usr/lib/ruby/gems/2.7.0/gems/autoprefixer-rails-10.2.0.0/lib/autoprefixer-rails/sprockets.rb:16:incall' 8: from /usr/lib/ruby/gems/2.7.0/gems/autoprefixer-rails-10.2.0.0/lib/autoprefixer-rails/sprockets.rb:22:in run' 7: from /usr/lib/ruby/gems/2.7.0/gems/autoprefixer-rails-10.2.0.0/lib/autoprefixer-rails/processor.rb:35:inprocess' 6: from /usr/lib/ruby/gems/2.7.0/gems/autoprefixer-rails-10.2.0.0/lib/autoprefixer-rails/processor.rb:143:in runtime' 5: from /usr/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs/module.rb:27:incompile' 4: from /usr/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs/runtime.rb:57:in compile' 3: from /usr/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs/runtime.rb:57:innew' 2: from /usr/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:8:in initialize' 1: from /usr/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs/encoding.rb:22:inencode' /usr/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs/encoding.rb:22:in encode': "\\xE2" on US-ASCII (Encoding::InvalidByteSequenceError) 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! /root/.npm/_logs/2021-01-16T14_26_29_375Z-debug.log`

and this is my /root/.npm/_logs/2021-01-16T14_26_29_375Z-debug.log:

2021-01-16T14_26_29_375Z-debug.log info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'local' ] 2 info using npm@6.14.11 3 info using node@v15.6.0 4 verbose run-script [ 'prelocal', 'local', 'postlocal' ] 5 info lifecycle chalk@~prelocal: chalk@ 6 info lifecycle chalk@~local: chalk@ 7 verbose lifecycle chalk@~local: unsafe-perm in lifecycle true 8 verbose lifecycle chalk@~local: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/ahmed/chalk/node_modules> 9 verbose lifecycle chalk@~local: CWD: /home/ahmed/chalk 10 silly lifecycle chalk@~local: Args: [ '-c', 'bundle exec jekyll serve --drafts' ] 11 silly lifecycle chalk@~local: Returned: code: 1 signal: null 12 info lifecycle chalk@~local: Failed to exec local script 13 verbose stack Error: chalk@ local:bundle exec jekyll serve --drafts 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 13 verbose stack at EventEmitter.emit (node:events:379:20) 13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (node:events:379:20) 13 verbose stack at maybeClose (node:internal/child_process:1065:16) 13 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:296:5) 14 verbose pkgid chalk@ 15 verbose cwd /home/ahmed/chalk 16 verbose Linux 5.4.86-1-lts 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "local" 18 verbose node v15.6.0 19 verbose npm v6.14.11 20 error code ELIFECYCLE 21 error errno 1 22 error chalk@ local:bundle exec jekyll serve --drafts 22 error Exit status 1 23 error Failed at the chalk@ local script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]