renandecarlo / tutsplus-downloader

A tool to download Envato TutsPlus video courses for offline usage.
MIT License
4 stars 1 forks source link

NPM command fails intalling slimerjs #2

Closed pcriv closed 6 years ago

pcriv commented 6 years ago

When i run:

npm -g install casperjs@1.1.3 slimerjs@0.9.6

I get this error:

npm WARN deprecated slimerjs@0.9.6: Switch to 0.10.2 when it's released
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/usr/local/bin/casperjs -> /usr/local/lib/node_modules/casperjs/bin/casperjs
/usr/local/bin/slimerjs -> /usr/local/lib/node_modules/slimerjs/bin/slimerjs

> slimerjs@0.9.6 install /usr/local/lib/node_modules/slimerjs
> node install.js

Looks like an `npm install -g`; unable to check for already installed version.
invalid config loglevel="notice"
Downloading http://download.slimerjs.org/releases/0.9.6/slimerjs-0.9.6-mac.tar.bz2
Saving to /var/folders/0b/6slhhys17sq44vtp61b2xs0c0000gn/T/slimerjs/slimerjs-0.9.6-mac.tar.bz2
Receiving...
Error requesting archive.
Status: 301
Request options: {
  "protocol": "http:",
  "slashes": true,
  "auth": null,
  "host": "download.slimerjs.org",
  "port": null,
  "hostname": "download.slimerjs.org",
  "hash": null,
  "search": null,
  "query": null,
  "pathname": "/releases/0.9.6/slimerjs-0.9.6-mac.tar.bz2",
  "path": "/releases/0.9.6/slimerjs-0.9.6-mac.tar.bz2",
  "href": "http://download.slimerjs.org/releases/0.9.6/slimerjs-0.9.6-mac.tar.bz2"
}
Response headers: {
  "server": "nginx/1.10.3",
  "date": "Tue, 21 Nov 2017 09:43:00 GMT",
  "content-type": "text/html",
  "location": "https://download.slimerjs.org/releases/0.9.6/slimerjs-0.9.6-mac.tar.bz2",
  "content-length": "185",
  "accept-ranges": "none",
  "connection": "close"
}
Make sure your network and proxy settings are correct.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! slimerjs@0.9.6 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the slimerjs@0.9.6 install 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!     /Users/pablocrivella/.npm/_logs/2017-11-21T09_43_00_664Z-debug.log
renandecarlo commented 6 years ago

It seems your NPM is failing to retrieve the slimerjs tarball for some reason. Try installing a newer version: npm -g install slimerjs

pcriv commented 6 years ago

The following command fixes the issue:

npm -g install slimerjs@0.906.1

Maybe you should update the README with that.

On another topic, even tho i managed to get the script running, it was never able to pass the user sign in form. Maybe due to google catpcha.

renandecarlo commented 6 years ago

It might be a platform specific problem, it worked fine for me under Windows. The one you mentioned also worked for me, I'll edit the README.

There is no captcha for me when I use the script or when I manually log-in. It might be hard to find a way around this.