Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Building Artemis from fresh repository, purged NPM cache and removed previous version of GitBook with release profile. I am getting error: GitBook version 3.2.3 is corrupted.
mvn clean install -Prelease main: [mkdir] Created dir: /home/pkralik/git/activemq-artemis-1/artemis-website/target/classes/user-manual [echo] executing /home/pkralik/git/activemq-artemis-1/artemis-website/node_modules/.bin/gitbook [exec] Error loading version 3.2.3: SyntaxError: Use of const in strict mode. [exec] at Module._compile (module.js:439:25) [exec] at Object.Module._extensions..js (module.js:474:10) [exec] at Module.load (module.js:356:32) [exec] at Function.Module._load (module.js:312:12) [exec] at Module.require (module.js:364:17) [exec] at require (module.js:380:17) [exec] at Object.<anonymous> (/home/pkralik/.gitbook/versions/3.2.3/node_modules/read-installed/node_modules/read-package-json/read-json.js:12:16) [exec] at Module._compile (module.js:456:26) [exec] at Object.Module._extensions..js (module.js:474:10) [exec] at Module.load (module.js:356:32) [exec] [exec] GitBook Ver [exec] /home/pkralik/.gitbook/versions/3.2.3/node_modules/read-installed/node_modules/read-package-json/node_modules/json-parse-better-errors/index.js:9 [exec] const syntaxErr = e.message.match(/^Unexpected token.*position\s+(\d+)/i) [exec] ^^^^^ [exec] sion 3.2.3 is corrupted
GitBook 3.2.3 runs in strict mode and Node.js version (v0.10.32):
https://github.com/apache/activemq-artemis/blob/master/artemis-website/pom.xml#L85
must be upgraded according to this table:
http://node.green/#ES2015-bindings-const-basic-support--strict-mode-