我正在尝试通过npm安装@ fortawesome / fontawesome-pro-webfonts。我已经将他们的存储库设置到我的npm配置中
; userconfig C:\Users\user10\.npmrc
@fortawesome:registry = "https://npm.fontawesome.com/MY-PRO-KEY"
运行npm install
会得到:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @fortawesome/fontawesome-pro-webfonts@5.2.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
如果我使用npm install --save-dev @fortawesome/fontawesome-pro
,它将成功安装该软件包。
为什么当我使用npm install
时找不到包裹?