/usr/local/lib/node_modules/@angular/cli/models/config/config.js:16
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [x ] feature request
Versions.
Output from: error
.
node --version: v4.4.7
and npm --version: 4.3.0
.
macOS (Sierra 10.12.4)
i did install angular-cli using this command
npm install -g @angular/cli
and whenever I use ng
command this is the output:
/usr/local/lib/node_modules/@angular/cli/models/config/config.js:16 constructor(_configPath, schema, configJson, fallbacks = []) { ^
SyntaxError: Unexpected token = at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions…js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (/usr/local/lib/node_modules/@angular/cli/models/config.js:3:18) at Module._compile (module.js:409:26) at Object.Module._extensions…js (module.js:416:10)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:8
I solved the problem by updating Node
I think this will help