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

throttle-debounce-fn seems to be unpublished #183

Closed artis3n closed 6 years ago

artis3n commented 6 years ago

The package throttle-debounce-fn fails to install. npm search throttle-debounce-fn returns no results, so it looks like this package has been unpublished, or I'm getting very weird network issues. There are alternative packages that might be able to be used: debounce-fn or throttle-debounce.

Is anyone else having issues installing packages from scratch?

> bin/setup

The Gemfile's dependencies are satisfied
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.1
Using public_suffix 3.0.3
Using addressable 2.5.2
Using execjs 2.7.0
Using autoprefixer-rails 9.1.4
Using bundler 1.16.2
Using colorator 1.1.0
Using colorize 0.8.1
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using ffi 1.9.25
Using ethon 0.11.0
Using exifr 1.3.4
Using forwardable-extended 2.6.0
Using extras 0.3.0
Using fastimage 2.1.4
Using fspath 3.1.0
Using gemoji 3.0.0
Using mini_portile2 2.3.0
Using nokogiri 1.8.5
Using html-pipeline 2.8.4
Using mercenary 0.3.6
Using parallel 1.12.1
Using typhoeus 1.3.0
Using yell 2.0.7
Using html-proofer 3.9.2
Using image_size 2.0.0
Using in_threads 1.5.0
Using progress 3.4.0
Using image_optim 0.26.2
Using rb-fsevent 0.10.3
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.6.0
Using jekyll-sass-converter 1.5.2
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 pathutil 0.16.1
Using rouge 3.3.0
Using safe_yaml 1.0.4
Using jekyll 3.8.4
Using jekyll-sanity 1.2.0
Using liquid-tag-parser 1.9.0
Using rack 2.0.5
Using sprockets 4.0.0.beta6
Using jekyll-assets 3.0.11
Using jekyll-paginate 1.1.0
Using jekyll-sitemap 1.2.0
Using jemoji 0.10.1
Using mini_magick 4.9.2
Using uglifier 4.1.19
Bundle updated!

No text has been removed between these sections, but highlighting the block below as this begins the yarn install and is where the package error occurs:

yarn install v1.10.1
[1/4] Resolving packages...
error No valid versions found for "throttle-debounce-fn". The package may be unpublished.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blog@ setup: `bin/setup`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the blog@ setup 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?
tobyjamesthomas commented 6 years ago

I'm having the same issue. How can we use throttle-debounce instead?

tobyjamesthomas commented 6 years ago

Solved the issue by using Zooming instead.

I had to modify the following files:

    modified:   _assets/javascripts/application.js
    modified:   _assets/javascripts/vendor.js
    modified:   _assets/stylesheets/dark.scss
    modified:   _assets/stylesheets/light.scss
    modified:   _includes/image.html
    modified:   package.json

I used the current Chalk repo as reference. Hope this helps!

Good luck!

artis3n commented 6 years ago

Just coming back to check on this. The latest branch does not throw this error. throttle-debounce-fn is still unpublished so looks like a fix was merged in. As I no longer see this problem I am closing this issue.

artis3n commented 6 years ago

Ah the Zooming functionality was merged in. Thanks, @tobyjamesthomas!