0
當我嘗試運行ng serve
我得到這個錯誤:角Cli時NG服務不工作
The "@angular/compiler-cli" package was not properly installed. Error:
TypeError
: Object prototype may only be an Object or null: undefined
Error: The "@angular/compiler-cli" package was not properly installed.
Error: Ty
peError: Object prototype may only be an Object or null: undefined
at Object.<anonymous> (C:\Users\Mounadi\angular2-quickstart\node_modules\@ng
tools\webpack\src\index.js:14:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\Mounadi\angular2-quickstart\node_modules\@an
gular\cli\tasks\eject.js:10:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
我試圖卸載@角/ CLI並安裝@角/ CLI @最新並且我得到了相同的錯誤
正如一個供參考,以'@安裝next'現在將安裝5.0.0公測。如果你想堅持4.x.使用'@ latest'。 –