reactjs - 无法为我的 react 项目安装我的 pro font awesome?
问题描述
我有一个小错误,我试图按照 FontAwesome 网站提供的指南来准确安装他们的软件包,但突然像往常一样出现错误。
所以他就是我所做的:
首先我点击了这个命令:
npm 配置集“@fortawesome:registry” https://npm.fontawesome.com/
其次,我点击了这个:
npm config set "//npm.fontawesome.com/:_authToken" myToken
一切都很好,我点击了这个:
npm install --save-dev @fortawesome/fontawesome-pro
但是一个错误,这里是:
npm ERR! path C:\Users\Dell\Desktop\Learn\symfprojs\talkstats\node_modules\.staging\@fortawesome\fontawesome-pro-40c9a865\webfonts\fa-regular-400.ttf
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\Dell\Desktop\Learn\symfprojs\talkstats\node_modules\.staging\@fortawesome\fontawesome-pro-40c9a865\webfonts\fa-regular-400.ttf'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink 'C:\Users\Dell\Desktop\Learn\symfprojs\talkstats\node_modules\.staging\@fortawesome\fontawesome-pro-40c9a865\webfonts\fa-regular-400.ttf'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink 'C:\Users\Dell\Desktop\Learn\symfprojs\talkstats\node_modules\.staging\@fortawesome\fontawesome-pro-40c9a865\webfonts\fa-regular-400.ttf'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\Dell\\Desktop\\Learn\\symfprojs\\talkstats\\node_modules\\.staging\\@fortawesome\\fontawesome-pro-40c9a865\\webfonts\\fa-regular-400.ttf'
npm ERR! },
npm ERR! stack: "Error: EPERM: operation not permitted, unlink 'C:\\Users\\Dell\\Desktop\\Learn\\symfprojs\\talkstats\\node_modules\\.staging\\@fortawesome\\fontawesome-pro-40c9a865\\webfonts\\fa-regular-400.ttf'",
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\Dell\\Desktop\\Learn\\symfprojs\\talkstats\\node_modules\\.staging\\@fortawesome\\fontawesome-pro-40c9a865\\webfonts\\fa-regular-400.ttf',
npm ERR! parent: 'talkstats'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dell\AppData\Roaming\npm-cache\_logs\2019-07-30T03_35_04_582Z-debug.log
我不知道如何解决它。任何帮助将不胜感激。
解决方案
推荐阅读
- ruby-on-rails - 带有 .ppk 密钥身份验证的 Net::SFTP
- java - 如何运行位于 jar 中的 VBScript?
- json - Postgres / 跨更新保留 json 列数据
- verification - 写入两个不同寄存器之一但具有相同字段的序列
- r - 将连接的列拆分到相应的列位置
- hibernate - 在 Hibernate 事件 PostLoadEvent 和 PostUpdateEvent 中从会话中获取分离的对象
- macos - (自动)续订订阅后,本地收据不会更新
- javascript - 我在节点 puppeteer 中有一个组按钮,但我想按简单按钮。它没有响应。现在解决方案是什么?
- redis - Redis 会话存储问题
- ios - 代号对 iOS QR 阅读器的一次本机调用