yarn install 报错,

这样的报错, 我们根本不知道怎么解决,作者怎么就不可以出个解决方案呢???

yarn install v1.19.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...
[4/4] Building fresh packages...
[6/6] ⠄ node-sass
[-/6] ⡀ waiting...
[6/6] ⠐ node-sass
[-/6] ⠐ waiting...
[-/6] ⠐ waiting...
[-/6] ⠈ waiting...
error /home/vagrant/Code/laravel-shop/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /home/vagrant/Code/laravel-shop/node_modules/node-sass
Output:
Building: /usr/bin/node /home/vagrant/Code/laravel-shop/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 1

file 经过我的测试, 这里的 L05_8.x 带 .x 后缀的都不可以切换成功, 还有,别的版本切换成功了, 运行 yarn install 这些也是加载不下来,
最后我是切换到了 L05_5.8 才可以成功运行 yarn install --no-bin-links 之后在编译成功 npm run dev , 希望可以帮到你们 ,

2年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!