Skip to content

Syntax error :Use of const in strict mode when creating new project #959

@winni4eva

Description

@winni4eva

I have installed Ubuntu 15.04 and node version 0.10.25. When i try creating a new project ng new winni-ng2 I get the ouput below. I get the same error when i try running ng --version also.

//OutPut
/usr/local/lib/node_modules/angular-cli/bin/ng:7
const resolve = require('resolve');
^^^^^
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions