最新回答 / 小獅
It appears you have a much older version of the CLI (still using the package name?angular-cli)You will want to remove that package and install the current version...
npm?uninstall?angular-cli?-g npm?install?@angular/cli?-g
2018-07-24
最新回答 / 慕前端8664132
https://stackoverflow.com/questions/49810580/error-local-workspace-file-angular-json-could-not-be-found試試這個(gè)吧,用谷歌翻譯下就行。
2018-06-06
最贊回答 / 飄飛的夏秋
使用 yarn 來代替 npm 安裝。比如:ng?new?demo --skip-install使用yarn安裝依賴包(安裝yarn:cnpm install -g yarn)進(jìn)入demo目錄運(yùn)行 yarn然后運(yùn)行 ng serve
2018-05-06
最新回答 / weibo_素顏養(yǎng)眼_0
在開始工作之前,我們必須設(shè)置好開發(fā)環(huán)境。如果你的機(jī)器上還沒有Node.js?和npm,請先安裝它們。請先在終端/控制臺窗口中運(yùn)行命令?node -v?和?npm -v,?來驗(yàn)證一下你正在運(yùn)行 node?6.9.x?和 npm?3.x.x?以上的版本。?更老的版本可能會出現(xiàn)錯(cuò)誤,更新的版本則沒問題。然后全局安裝?Angular CLI?。ng new my-appcd my-appng serve
2018-02-09