ContentMine / getpapers

Get metadata, fulltexts or fulltext URLs of papers matching a search query

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failure to install on Windows 8.1

rossmounce opened this issue · comments

Running Win8.1 in a Virtualbox VM

Installed nodejs from .msi file

Failed to install via npm install --global getpapers

Error log details here: https://gist.github.com/rossmounce/504bbcb02b178aae14cffc7449fe83a7

Problem with the npm supports-color pkg dependancy?

I had a go in Windows "Powershell" (lol) as well. It seems to trip over a different package each time:

Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

PS C:\Users\jing> npm install --global getpapers
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall" "--global" "getpapers"
npm ERR! node v6.9.2
npm ERR! npm  v3.10.9
npm ERR! file C:\Users\jing\AppData\Roaming\npm-cache\escape-string-regexp\1.0.5\package\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\jing\AppData\Roaming\npm-cache\escape-string-regexp\1.0.5\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\jing\npm-debug.log
PS C:\Users\jing> npm install --global getpapers
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall" "--global" "getpapers"
npm ERR! node v6.9.2
npm ERR! npm  v3.10.9
npm ERR! file C:\Users\jing\AppData\Roaming\npm-cache\strip-ansi\2.0.1\package\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\jing\AppData\Roaming\npm-cache\strip-ansi\2.0.1\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\jing\npm-debug.log
PS C:\Users\jing>

Phew. Corrupted file somewhere.
After npm cache clean it installs fine.

Good to have this error documented I guess? :)