执行 yarn add @fortawesome/Font Awesome-free 之后,出现了这个报错该怎么解决呀?
执行 yarn add @fortawesome/fontawesome-free
之后,出现了这个报错该怎么解决呀?
vagrant@homestead:~/code/larabbs$ yarn add @fortawesome/fontawesome-free
yarn add v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > sass-loader@7.1.0" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../parser/bin/babel-parser.js' -> '/home/vagrant/code/larabbs/node_modules/@babel/core/node_modules/.bin/parser'".
info If you think this is a bug, please open a bug report with the information provided in "/home/vagrant/code/larabbs/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
请问这个问题该怎么解决呀?
这个扩展包安装不了,后面的部分必须完成的章节就无法进行下去了。
这个扩展包无法跳过,可是我又死活安装不上,难受。。。。。。
为什么这个教程必须选择这个扩展包呢?
而且还必须强制安装,否则后面教程将会遇到无法逾越的障碍,难受。。。
写一下我的解决方法未必所有人都合适:
1.直接执行:yarn add @fortawesome/Font Awesome-free 会遇到跟题主一毛一样的问题
2.看了一楼试了一下 yarn add @fortawesome/fontawesome-free --no-bin-links 发现出了个新错误:
Exit code: 127
Command: lightercollective
3.参考https://laravel-china.org/index.php/topics/22059,这里的报错提示是 :lightercollective: not found,所以使用 sudo npm i -g lightercollective 命令安装。
4.再试试yarn add @fortawesome/Font Awesome-free~成功了