[英]Cannot find module '@fortawesome/angular-fontawesome'
我正在嘗試在Angular8
安裝fontawesome<0.4.x>
,但它給了我一個錯誤並說:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/0.4.x - Not found
npm ERR! 404
npm ERR! 404 '0.4.x@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
我遵循了基於 此頁面的過程
但是在執行最后一行( $ npm install @fortawesome/angular-fontawesome@<version>
)后,它給了我ERR 404 !!
我將感謝您的幫助...謝謝
當你在最后使用 @ 時,你需要像下面的命令一樣設置版本。
$ npm install @fortawesome/angular-fontawesome@0.3.x
官方forawesome npm 頁面完整描述了每個 angular 版本使用哪個版本。
當您在最后使用 @ 時,您需要指定版本號,例如
`@3.3` etc
如果您想要最新版本,只需刪除以@
開頭的所有內容,它會自動安裝最新的穩定版本
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.