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

micro-dev command fails ( npm run dev) #36

Closed
muthah opened this issue Sep 15, 2017 · 1 comment
Closed

micro-dev command fails ( npm run dev) #36

muthah opened this issue Sep 15, 2017 · 1 comment

Comments

@muthah
Copy link

muthah commented Sep 15, 2017

Tried the micro-dev command and it failed. below is the output from the command:

>npm run dev

 microservice@0.0.1 dev /home/.../microservice
 micro-dev

/home/.../microservice/node_modules/micro-dev/lib/serve.js:10
module.exports = async (file, flags, restarting) => {
                       ^

SyntaxError: Unexpected token (
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/.../microservice/node_modules/micro-dev/bin/micro-dev.js:12:15)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! microservice@0.0.1 dev: `micro-dev`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the microservice@0.0.1 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Which node runtime do you recommend for micro-dev to run since the other one

> npm start  
> microservice@0.0.1 start /home/muthah/ad/dev/node/microservice
> micro
>micro: Accepting connections on port 3000

runs perfectly. Iam using node 6.11

package.json

{
  "name": "microservice",
  "version": "0.0.1",
  "description": "micro service POC",
  "main": "index.js",
  "scripts": {
  "start": "micro",
  "dev": "micro-dev",
  "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/"
  },
}
@leo
Copy link
Contributor

leo commented Sep 15, 2017

Your Node.js version is not supported. Please upgrade to the latest one 😊

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

2 participants