找不到模块'@fortawesome/angular fontawesome';

找不到模块'@fortawesome/angular fontawesome';,angular,typescript,font-awesome,Angular,Typescript,Font Awesome,我正试图在Angular8中安装fontawesome,但它给了我一个错误并告诉我: 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

我正试图在
Angular8
中安装
fontawesome
,但它给了我一个错误并告诉我:

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@fortwome/angular-fontwome@
) 它给了我
错误404

我会感谢你的帮助。。。Thanx

当您在末尾使用@时,需要按照以下命令设置版本

$ npm install @fortawesome/angular-fontawesome@0.3.x

官方npm页面对每个角度版本使用哪个版本有完整的描述。

当您在末尾使用@时,您需要按照以下命令设置版本

$ npm install @fortawesome/angular-fontawesome@0.3.x

npm官方页面对每个角度版本使用哪个版本有完整的描述。

当您在末尾使用@时,您需要指定版本号,如

    `@3.3` etc

如果您想要最新版本,只需删除从
@
开始的所有内容,当您最后使用@时,它将自动安装最新的稳定版本,您需要指定如下版本号

    `@3.3` etc
如果您想要最新版本,只需删除从
@
开始的所有内容,它就会自动安装最新的稳定版本