ContentMine / quickscrape

A scraping command line tool for the modern web
MIT License
259 stars 42 forks source link

installing quickscrape after installing getpapers, breaks getpapers #96

Open rossmounce opened 7 years ago

rossmounce commented 7 years ago

I know this repo is out of date, but this pre-requisites bit in particular needs changing:

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.24.1/install.sh | bash

source ~/.nvm/nvm.sh
nvm install 0.10
nvm alias default 0.10
nvm use default

I had getpapers successfully installed yesterday. The above instructions (from this repo readme) kinda make getpapers non-functional after following them, for obvious reasons: making the default an older version of nvm/node/npm (I guess?). I thought I'd change the readme myself directly, but I'm not exactly sure what instructions should replace these.

Luckily it is easy to fix, to just reinstall getpapers after installing quickscrape:

nvm install 4.0
nvm use 4.0
npm install --global getpapers
blahah commented 7 years ago

It's not installing quickscrape, but activating a different version of node that is making getpapers unavailable. After you do your second code block, you won't have quickscrape available in the 4.0 node installation. You just need to npm install --global quickscrape in the 4.0 installation to start with, and they will both be available.

tarrow commented 7 years ago

the problem is the engine version in package.json is too low for the libraries we depend on. I guess it has been for a while but people have rarely been using a pre 0.10 version and then complained.