![](/img/trans.png)
[英]Collection “@schematics/angular/migrations/migration-collection.json” cannot be resolved
[英]Collection “@schematics/angular” cannot be resolved
我剛剛在ubuntu中安裝了angular cli,但是當我嘗試通過ng new my-dream-app
創建新ng new my-dream-app
,顯示錯誤,提示Collection "@schematics/angular" cannot be resolved. Error: Collection "@schematics/angular" cannot be resolved.
Collection "@schematics/angular" cannot be resolved. Error: Collection "@schematics/angular" cannot be resolved.
我安裝@原理圖/由角 npm install @schematics/angular
,但它沒有工作。 我卸載了角度cli,然后再次重新安裝了它,但是它沒有起作用,它拋出了同樣的錯誤。
如果使用-g鍵安裝angular-cli,應該沒問題。 如果不是,請嘗試全局安裝angular-cli。 然后,您可以檢查依賴關系。 在您的node_modules中找到@angular文件夾。 在/ cli / node_modules內部,您應該看到@schematics文件夾。 如果存在,一切都會很好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.