-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
- El Capitan
ng --version
giving error
Node v4.4.7
I ran the commands:
sudo npm uninstall -g angular-cli
npm cache clean
sudo npm install -g angular-cli@webpack
After it ran the install process, now when i run any of the "NG" commands such as:
ng --version
I get the following errors:
Error while running script "/usr/local/lib/node_modules/angular-cli/addon/ng2/models/config/config.ts":
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.require.extensions..ts (/usr/local/lib/node_modules/angular-cli/lib/bootstrap-local.js:30:14)
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/addon/ng2/models/config.ts:7:16)
at Module._compile (module.js:409:26)
at Object.require.extensions..ts (/usr/local/lib/node_modules/angular-cli/lib/bootstrap-local.js:30:14)
Error while running script "/usr/local/lib/node_modules/angular-cli/addon/ng2/models/config.ts":
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.require.extensions..ts (/usr/local/lib/node_modules/angular-cli/lib/bootstrap-local.js:30:14)
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/addon/ng2/models/config.ts:7:16)
at Module._compile (module.js:409:26)
at Object.require.extensions..ts (/usr/local/lib/node_modules/angular-cli/lib/bootstrap-local.js:30:14)
/usr/local/lib/node_modules/angular-cli/addon/ng2/models/config/config.ts:23
this._config = new (schema_class_factory_1.SchemaClassFactory(schema))(configJson, ...fallbacks);
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.require.extensions..ts (/usr/local/lib/node_modules/angular-cli/lib/bootstrap-local.js:30:14)
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/addon/ng2/models/config.ts:7:16)
at Module._compile (module.js:409:26)
at Object.require.extensions..ts (/usr/local/lib/node_modules/angular-cli/lib/bootstrap-local.js:30:14)
Did i miss some packages or something?
mikerob215, DaleyC, mb-jenks, mambroz27, j0s3v4rg4s and 6 more
Metadata
Metadata
Assignees
Labels
No labels