Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Installation failure #2

Open
mackensen opened this issue Jun 23, 2017 · 2 comments
Open

Installation failure #2

mackensen opened this issue Jun 23, 2017 · 2 comments

Comments

@mackensen
Copy link

Node version: v0.10.25

When attempting to run npm start after running npm install:

/var/www/filescan/controllers/FileService.js:2
let	PDFParser = require("pdf2json"),
^^^
Error initializing middleware
SyntaxError: Unexpected strict mode reserved word
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/var/www/filescan/controllers/File.js:5:12)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
npm ERR! weird error 1
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0
@aruethe2
Copy link
Contributor

Looks like a node.js version issue. I'm on v6.9.1. I'll check to see what the minimum requirement is and post it in the README.

@mackensen
Copy link
Author

Confirmed that bumping nodejs to something a little less primitive resolved the issue. For me that was v8.1.2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants