簡體   English   中英

我的 Angular 不工作,我已經為它下載了正確的東西

[英]My Angular isn't working and I have downloaded the right things for it

deji150@Dejis-MBP ~ % npm install -g @angular/cli@9 npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 在 Node.js 環境中使用時具有低嚴重性 ReDos 回歸。 建議您升級到 3.2.7 或 4.3.1。 ( https://github.com/visionmedia/debug/issues/797 ) ^[[B⸨░░░░░░░░░░░░░░░░░░⸩ ⠏ debug WAR fetchMetadata.: 1:調試版本^[[B⸨░░░░░░░░░░░░░░░░░░⸩⠸ fetchMetadata: sill resolveWithNewModule @schematics/^[[B⸨░░░░░░░░░░░░░░ ░░░░░░░░░⸩ ⠸ fetchMetadata: sill resolveWithNewModule @schematics/^[[B⸨░░░░░░░░░░░░░░░░░░░schematics/With NewModule fetch npm WARN 已棄用 request@2.88.2:request 已棄用,請參閱 https://github.com/request/request/issues/3142 npm WARN 已棄用 har-validator@5s/1 不再支持此庫: deji150/.npm-global/bin/ng -> /Users/deji150/.npm-global/lib/node_modules/@angular/cli/bin/ng

@angular/cli@9.1.15 postinstall /Users/deji150/.npm-global/lib/node_modules/@angular/cli node./bin/postinstall/script.js

  • @angular/cli@9.1.15 添加了來自 67 個貢獻者的 104 個包,刪除了 150 個包並在 47.785 秒內更新了 33 個包 deji150@Dejis-MBP ~ % ng --version zsh: command not found: ng deji150@Dejis-MBP ~ %

npx ng version有效嗎?

最有可能的是,您的全局節點/bin 路徑的路徑未添加到您的系統路徑變量中。 然后按照這個,它應該做的伎倆https://stackoverflow.com/a/15623632/2046263

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM