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
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 1

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

2年前 评论

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