I have tried the solutions in this post
I was not able to try this solution because I do not have sudo
privileges on my university server, so I can't use -g
.
This is the exact error message:
const WebSocket = require('./lib/WebSocket');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
...
I am using node version:
$>node --version
v0.10.29
$>npm --version
3.3.6
And this is the contents of my package.json file:
{
"name": "vocab-trainer-ui",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"underscore": "*",
"body-parser": "*",
"request-promise": "*",
"socket.io": "*",
"express": "4.x",
"body-parser": "*",
"cookie-parser": "*",
"express-session": "*",
"pug": "*",
"bcrypt-nodejs": "*",
"passport": "*",
"passport-local": "*",
"mysql": "*",
"bookshelf": "0.5",
"bouncy": "*",
"uuid": "*",
"http-proxy": "*",
"walk": "*",
"node-http-proxy": "*",
"fast-levenshtein": "*"
}
}
Is there anything I can do to fix this issue? Also, I developed the same app locally and I have no issues running it. This error only shows up on my university servers. Thanks
via A.D
No comments:
Post a Comment