Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu Server 15.10 - SyntaxError: Use of const in strict mode. #88

Open
ecchi opened this issue Nov 13, 2015 · 2 comments
Open

Ubuntu Server 15.10 - SyntaxError: Use of const in strict mode. #88

ecchi opened this issue Nov 13, 2015 · 2 comments

Comments

@ecchi
Copy link

ecchi commented Nov 13, 2015

Followed directions for installing on ubuntu. Obviously my fault for using unsupported 15.10 version, but thought it might be of some importance. Mainly did the test, to see if my problems on Mac were unique to my account or not, or if it was the OS. Will attempt LTS another day. Its late here.

node client.es6.js 

/home/ecchi/node-gdrive-fuse/src/client.es6.js:2
const readline = require('readline');
^^^^^
SyntaxError: Use of const in strict mode.
    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 Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
node fs.es6.js 

/home/ecchi/node-gdrive-fuse/src/fs.es6.js:2
const google = require( 'googleapis' );
^^^^^
SyntaxError: Use of const in strict mode.
    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 Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
@EricTheMagician
Copy link
Owner

I should update those instructions as I didn't write those, but I would suggest to use nvm and install a newer version of nodejs.

@dellipse
Copy link
Contributor

I am also having the same issues with the latest version of node.js (5.0.0)

As of today, what version are you coding against?

(Edit: there was a conflict of node.js versions on the system and it was picking the wrong one. Now using v5.0.0 as installed by nvm instead of the previous instructions to use a PPA and apt-get. Also, edited the instructions as it has been a LONG time since I wrote them and things have changed.)

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

No branches or pull requests

3 participants