astefanutti / decktape

PDF exporter for HTML presentations
MIT License
2.21k stars 177 forks source link

I get an error when trying to run deck tape the first time #119

Closed jkohlin closed 7 years ago

jkohlin commented 7 years ago

I installed it at the Downloads folder and then ran it locally: $ npm install decktape $ ´npm bin´/decktape But I get this: node_modules/decktape/decktape.js:162 (async () => { ^ SyntaxError: Unexpected token (

I also tried to install it globally, but instead got an error while installing npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/decktape/decktape.js' -> '/usr/local/bin/decktape'

I'm probably doing something wrong, but have no idea what that might be

astefanutti commented 7 years ago

For the first error, DeckTape requires Node version 7.10.0+ as it uses async / await.

For the second error, it looks like a permission issue. You may try sudo npm i -g decktape.

Make sure your NPM version is recent as well.

jkohlin commented 7 years ago

Strange, I have Node 7.4: Terminal screenshot

astefanutti commented 7 years ago

Given that DeckTape requires Node version v7.10.0+ and that you have v7.4.0 which is older, it sounds logical. You should be able to fix the error by upgrading Node to a version greater than 7.10.0.

astefanutti commented 7 years ago

Let me close this. Feel free to re-open if upgrading Node is not the solution.