gulp-community / gulp-livereload

gulp plugin for livereload
768 stars 67 forks source link

Installing with npm 3 throws ENOENT #94

Closed ghost closed 9 years ago

ghost commented 9 years ago

This was working fine until I upgraded to npm 3. When I gulp watch, it starts listening, but as soon as I load the page that requests the livreload script, it throws this:

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'path/to/project/node_modules/tiny-lr/node_modules/livereload-js/dist/livereload.js'
    at Error (native)
ghost commented 9 years ago

Using tiny-lr from github instead of npm fixes this for now 0132bebbf7429d234a3981536a96461875f8bd41

DarkPark commented 9 years ago

https://github.com/mklabs/tiny-lr/issues/91

elwayman02 commented 9 years ago

@phparkle @DarkPark I've submitted a PR with a more permanent solution.