我有一个小错误,我试图遵循FontAwesome网站提供的指南来准确安装其软件包,但是突然出现错误,像往常一样。
所以他就是我所做的:
首先我点击了以下命令:
npm配置设置为“ @fortawesome:registry” https://npm.fontawesome.com/
第二次我点击了这个:
npm配置设置为“ //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
我不知道该怎么解决。任何帮助将不胜感激。