Skip to content

"ng new" not working, says there is a syntax error #17462

@tylerchasefranklin

Description

@tylerchasefranklin

I am trying to start a new Angular project and have used Angular CLI before and it worked, however I cannot get "ng new" to work now. I have uninstalled and reinstalled angular cli, and I have the most up to date versions of node and npm.

When I try to use "ng new angular-project" now this is what I get:

/usr/local/lib/node_modules/@angular/cli/bin/ng:23
);
^
SyntaxError: Unexpected token )
at Object.exports.runInThisContext (vm.js:78:16)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:535:3

Not sure what else I am missing. Any help is appreciated!

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