I Angular CLI mit npm mit dieser commande Linie installiert:Winkel-cli ng Befehl gibt "Unexpected token ="
npm install -g @angular/cli
Die Installation mit Erfolg durchgeführt wurde, aber wenn ich versuche, die ng zu verwenden commande dann hatte ich diesen Fehler:
[email protected]:/home/errabi/Desktop# ng help
/usr/local/lib/node_modules/@angular/cli/models/config/config.js:17
constructor(_configPath, schema, configJson, fallbacks = []) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354: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:410:26)
at Object.Module._extensions..js (module.js:417:10)
Jede Idee, über dieses Problem Vielen Dank im Voraus
Welche Version des Knotens haben Sie installiert? –
Ich benutze diese Version v4.2.6 –
Für den Betrieb angle-cli, sollte Ihre Knoten-Version mindestens 6 –