{"action":"closed","issue":{"url":"https://api.github.com/repos/feathersjs/feathers/issues/275","repository_url":"https://api.github.com/repos/feathersjs/feathers","labels_url":"https://api.github.com/repos/feathersjs/feathers/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/feathersjs/feathers/issues/275/comments","events_url":"https://api.github.com/repos/feathersjs/feathers/issues/275/events","html_url":"https://github.com/feathersjs/feathers/issues/275","id":142489380,"number":275,"title":"Error on running node app command","user":{"login":"virajkulkarni14","id":1186610,"avatar_url":"https://avatars.githubusercontent.com/u/1186610?v=3","gravatar_id":"","url":"https://api.github.com/users/virajkulkarni14","html_url":"https://github.com/virajkulkarni14","followers_url":"https://api.github.com/users/virajkulkarni14/followers","following_url":"https://api.github.com/users/virajkulkarni14/following{/other_user}","gists_url":"https://api.github.com/users/virajkulkarni14/gists{/gist_id}","starred_url":"https://api.github.com/users/virajkulkarni14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virajkulkarni14/subscriptions","organizations_url":"https://api.github.com/users/virajkulkarni14/orgs","repos_url":"https://api.github.com/users/virajkulkarni14/repos","events_url":"https://api.github.com/users/virajkulkarni14/events{/privacy}","received_events_url":"https://api.github.com/users/virajkulkarni14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T22:28:32Z","updated_at":"2016-03-22T03:49:25Z","closed_at":"2016-03-22T03:49:25Z","body":"Hi,\r\n\r\nI need help with running the basic feathers app. I get this error when I run the command `node app` from the src/ folder:\r\n\r\n```\r\nmyfilepath/src/services/user/index.js:6\r\n  constructor(options = {}) {\r\n                      ^\r\n\r\nSyntaxError: Unexpected token =\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:387:25)\r\n    at Object.Module._extensions..js (module.js:422:10)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Module.require (module.js:367:17)\r\n    at require (internal/module.js:16:19)\r\n    at Object.<anonymous> (myfilepath/src/services/index.js:3:14)\r\n    at Module._compile (module.js:413:34)\r\n    at Object.Module._extensions..js (module.js:422:10)\r\n\r\n```\r\nThe generated app.js looks like this:\r\n\r\n```\r\n'use strict';\r\n\r\nconst path = require('path');\r\nconst serveStatic = require('feathers').static;\r\nconst favicon = require('serve-favicon');\r\nconst compress = require('compression');\r\nconst feathers = require('feathers');\r\nconst configuration = require('feathers-configuration');\r\nconst hooks = require('feathers-hooks');\r\nconst rest = require('feathers-rest');\r\nconst bodyParser = require('body-parser');\r\nconst socketio = require('feathers-socketio');\r\nconst middleware = require('./middleware');\r\nconst services = require('./services');\r\n\r\nconst app = feathers();\r\n\r\napp.configure(configuration(path.join(__dirname, '..')));\r\n\r\napp.use(compress())\r\n  .use(favicon( path.join(app.get('public'), 'favicon.ico') ))\r\n  .use('/', serveStatic( app.get('public') ))\r\n  .use(bodyParser.json())\r\n  .use(bodyParser.urlencoded({ extended: true }))\r\n  .configure(hooks())\r\n  .configure(rest())\r\n  .configure(socketio())\r\n  .configure(services)\r\n  .configure(middleware);\r\n\r\nmodule.exports = app;\r\n```\r\n\r\nAnd the file for which I'm getting the error looks like this(again, generated by yeoman generator):\r\n\r\n```\r\n'use strict';\r\n\r\nconst hooks = require('./hooks');\r\n\r\nclass Service {\r\n constructor(options = {}) { //THIS is where I'm getting the error\r\n    this.options = options;\r\n  }\r\n\r\n  find(params) {\r\n    return Promise.resolve([]);\r\n  }\r\n\r\n  get(id, params) {\r\n    return Promise.resolve({\r\n      id, text: `A new message with ID: ${id}!`\r\n    });\r\n  }\r\n\r\n  create(data, params) {\r\n    if(Array.isArray(data)) {\r\n      return Promise.all(data.map(current => this.create(current)));\r\n    }\r\n\r\n    return Promise.resolve(data);\r\n  }\r\n\r\n  update(id, data, params) {\r\n    return Promise.resolve(data);\r\n  }\r\n\r\n  patch(id, data, params) {\r\n    return Promise.resolve(data);\r\n  }\r\n\r\n  remove(id, params) {\r\n    return Promise.resolve({ id });\r\n  }\r\n}\r\n\r\nmodule.exports = function(){\r\n  const app = this;\r\n\r\n  // Initialize our service with any options it requires\r\n  app.use('/users', new Service());\r\n\r\n  // Get our initialize service to that we can bind hooks\r\n  const userService = app.service('/users');\r\n\r\n  // Set up our before hooks\r\n  userService.before(hooks.before);\r\n\r\n  // Set up our after hooks\r\n  userService.after(hooks.after);\r\n};\r\n\r\nmodule.exports.Service = Service;\r\n```\r\nWhat am I doing wrong here?\r\n\r\nThanks!"}}