derrida
asked on
suddenly angular cli doesn't work.
Hi
when i start a new project with angular cli i get this error. didn't happened before, and i don't understand the error:
Unexpected token ...
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> (C:\xampp\htdocs\testangfo rme2\node_ modules\@n gtools\jso n-schema\s rc\index.j s:3:30)
at Module._compile (module.js:409:26)
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> (C:\xampp\htdocs\testangfo rme2\node_ modules\an gular-cli\ models\con fig\config .js:9:21)
at Module._compile (module.js:409:26)
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> (C:\xampp\htdocs\testangfo rme2\node_ modules\an gular-cli\ models\con fig.js:7:1 6)
at Module._compile (module.js:409:26)
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> (C:\xampp\htdocs\testangfo rme2\node_ modules\an gular-cli\ addon\inde x.js:4:16)
at Module._compile (module.js:409:26)
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 Function.Addon.lookup (C:\xampp\htdocs\testangfo rme2\node_ modules\an gular-cli\ ember-cli\ lib\models \addon.js: 209:19)
at Project.initializeAddons (C:\xampp\htdocs\testangfo rme2\node_ modules\an gular-cli\ ember-cli\ lib\models \project.j s:300:29)
at Project.eachAddonCommand (C:\xampp\htdocs\testangfo rme2\node_ modules\an gular-cli\ ember-cli\ lib\models \project.j s:354:10)
at module.exports (C:\xampp\htdocs\testangfo rme2\node_ modules\an gular-cli\ ember-cli\ lib\cli\lo okup-comma nd.js:33:1 3)
at CLI.<anonymous> (C:\xampp\htdocs\testangfo rme2\node_ modules\an gular-cli\ ember-cli\ lib\cli\cl i.js:42:26 )
at tryCatch (C:\xampp\htdocs\testangfo rme2\node_ modules\rs vp\dist\rs vp.js:538: 12)
at invokeCallback (C:\xampp\htdocs\testangfo rme2\node_ modules\rs vp\dist\rs vp.js:553: 13)
at publish (C:\xampp\htdocs\testangfo rme2\node_ modules\rs vp\dist\rs vp.js:521: 7)
at flush (C:\xampp\htdocs\testangfo rme2\node_ modules\rs vp\dist\rs vp.js:2373 :5)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
all i did is:
ng new project name
and after it is done, run ng serve. then i get this.
any idea?
when i start a new project with angular cli i get this error. didn't happened before, and i don't understand the error:
Unexpected token ...
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions.
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> (C:\xampp\htdocs\testangfo
at Module._compile (module.js:409:26)
at Object.Module._extensions.
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> (C:\xampp\htdocs\testangfo
at Module._compile (module.js:409:26)
at Object.Module._extensions.
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> (C:\xampp\htdocs\testangfo
at Module._compile (module.js:409:26)
at Object.Module._extensions.
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> (C:\xampp\htdocs\testangfo
at Module._compile (module.js:409:26)
at Object.Module._extensions.
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 Function.Addon.lookup (C:\xampp\htdocs\testangfo
at Project.initializeAddons (C:\xampp\htdocs\testangfo
at Project.eachAddonCommand (C:\xampp\htdocs\testangfo
at module.exports (C:\xampp\htdocs\testangfo
at CLI.<anonymous> (C:\xampp\htdocs\testangfo
at tryCatch (C:\xampp\htdocs\testangfo
at invokeCallback (C:\xampp\htdocs\testangfo
at publish (C:\xampp\htdocs\testangfo
at flush (C:\xampp\htdocs\testangfo
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
all i did is:
ng new project name
and after it is done, run ng serve. then i get this.
any idea?
Please take a look at this bug report
https://github.com/angular/angular-cli/issues/1946
Suggests upgrading to Node 6
https://github.com/angular/angular-cli/issues/1946
Suggests upgrading to Node 6
ASKER
hi
i have thinstalled this: https://github.com/felixrieseberg/npm-windows-upgrade
on the understanding that this will upgrade node
but as you can see the version is still 4.4.7
how do i upgrade my node then?
i have thinstalled this: https://github.com/felixrieseberg/npm-windows-upgrade
on the understanding that this will upgrade node
but as you can see the version is still 4.4.7
how do i upgrade my node then?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the simplest way, and it works
ASKER
angular-cli: 1.0.0-beta.26
node: 4.4.7
os: win32 x64