如何解决无法在 Outlook Web 加载项项目中安装流畅的 UI 反应
我正在尝试在 Outlook Web 加载项项目上安装流畅的 UI,但出现不同的错误:
在 @fluentui/react - npm 中说我应该使用 npm i @fluentui/react
但我得到:
http fetch GET 200 http://registry.npmjs.org/@fluentui%2ffont-icons-mdl2 337ms
silly fetchPackageMetaData error for @fluentui/font-icons-mdl2@^8.0.4 UNKNOWN: unknown error
在 Release notes 中说我应该使用 npm install @fluentui/react@^8.0.0
并且我得到
http fetch GET 200 http://registry.npmjs.org/@fluentui%2freact 394ms
silly fetchPackageMetaData error for @fluentui/react@8.0.0 No matching version found for @fluentui/react@8.0.0.
我以前没有使用 node 或 react 的经验,所以即使是基本的东西也可以随意指出。
我已经搜索了安装问题,但我能找到的所有问题都与软件包的最新版本无关。
我也试过 npm install --save @fluentui/react
得到第一个提到的错误。
编辑:
我支持公司代理,这是我的配置:
[System variable]
GLOBAL_AGENT_HTTP_PROXY = http://username:password@corporate.proxy.com:port
[.npmrc]
proxy=http://username:password@corporate.proxy.com:port
https-proxy=http://username:password@corporate.proxy.com:port/
http-proxy= http://username:password@corporate.proxy.com:port
strict-ssl=false
registry=http://registry.npmjs.org/
提前致谢。
解决方法
当我编辑问题以提供我的代理配置时,我注意到 https-proxy 中有一个可能不需要的斜杠,我将其删除并尝试了 npm install 命令:
npm install @fluentui/react@^8.0.0
> “没有匹配的版本...找到”
npm i @fluentui/react
> 成功了。
我觉得有趣的是,只有部分包下载失败,这让我认为代理配置没问题,并不担心。
我希望这对未来的人有所帮助。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。