Angular-cli: SyntaxError: Use of const in strict mode. Const CliConfig

Created on 5 May 2017  路  4Comments  路  Source: angular/angular-cli

Running off ng serve I am getting the below error.

C:\Users\pc\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng:7
const CliConfig = require('../models/config').CliConfig;

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:929:3

Most helpful comment

For CLI use we do require node 6.9.0 as minimum: https://github.com/angular/angular-cli#prerequisites

All 4 comments

What is your version of node? node -v

node version 0.10.35 and npm version 3.10.10

For CLI use we do require node 6.9.0 as minimum: https://github.com/angular/angular-cli#prerequisites

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brtnshrdr picture brtnshrdr  路  3Comments

donaldallen picture donaldallen  路  3Comments

naveedahmed1 picture naveedahmed1  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments